汗,刚刚突然发现我的javac是eclipse的java编译器。留念下。
stlxv@stlxvcomputer:~$ javac -version
Eclipse Java Compiler v_686_R32x, 3.2.2 release, Copyright IBM Corp 2000, 2006.
这东西原名叫ecj,不过我也不知道是哪里冒出来的。算了,这个东西编译速度挺快的,我觉得。
stlxv@stlxvcomputer:~$ update-alternatives --display javac
javac - status is auto.
link currently points to /usr/bin/ecj
/usr/lib/jvm/java-6-sun/bin/javac - priority 63
slave javac.1.gz: /usr/lib/jvm/java-6-sun/man/man1/javac.1.gz
/usr/bin/ecj - priority 143
slave javac.1.gz: /usr/share/man/man1/ecj.1.gz
Current `best' version is /usr/bin/ecj.
可编译1.3~1.6的代码。
stlxv@stlxvcomputer:~$ javac
Eclipse Java Compiler v_686_R32x, 3.2.2 release
Copyright IBM Corp 2000, 2006. All rights reserved.
Usage: <options> <source files | directories>
If directories are specified, then their source contents are compiled.
Possible options are listed below. Options enabled by default are prefixed
with '+'.
Classpath options:
-cp -classpath <directories and zip/jar files separated by :>
specify location for application classes and sources.
Each directory or file can specify access rules for
types between '[' and ']' (e.g. [-X] to forbid
access to type X, [~X] to discourage access to type X,
[+p/X:-p/*] to forbid access to all types in package p
but allow access to p/X)
-bootclasspath <directories and zip/jar files separated by :>
specify location for system classes. Each directory or
file can specify access rules for types between '['
and ']'
-sourcepath <directories and zip/jar files separated by :>
specify location for application sources. Each directory
or file can specify access rules for types between '['
and ']'.
.class files created from source files contained in a
jar file are put in the user.dir folder in case no
destination directory is specified.
-extdirs <directories separated by :>
specify location for extension zip/jar files
-endorseddirs <directories separated by :>
specify location for endorsed zip/jar files
-d <dir> destination directory (if omitted, no directory is
created)
-d none generate no .class files
-encoding <enc> specify custom encoding for all sources. Each
file/directory can override it when suffixed with
'['<enc>']' (e.g. X.java[utf8])
Compliance options:
-1.3 use 1.3 compliance level (implicit -source 1.3
-target 1.1)
-1.4 + use 1.4 compliance level (implicit -source 1.3
-target 1.2)
-1.5 use 1.5 compliance level (implicit -source 1.5
-target 1.5)
-1.6 use 1.6 compliance level (implicit -source 1.6
-target 1.6)
-source <version> set source level: 1.3 to 1.6 (or 5, 5.0, 6 or 6.0)
-target <version> set classfile target level: 1.1 to 1.6 (or 5, 5.0, 6 or
6.0)
Warning options:
-deprecation + deprecation outside deprecated code
-nowarn disable all warnings
-warn:none disable all warnings
-warn:<warnings separated by ,> enable exactly the listed warnings
-warn:+<warnings separated by ,> enable additional warnings
-warn:-<warnings separated by ,> disable specific warnings
allDeprecation deprecation including inside deprecated code
allJavadoc invalid or missing javadoc
assertIdentifier + 'assert' used as identifier
boxing autoboxing conversion
charConcat + char[] in String concat
conditionAssign possible accidental boolean assignment
constructorName + method with constructor name
dep-ann missing @Deprecated annotation
deprecation + deprecation outside deprecated code
discouraged + use of types matching a discouraged access rule
emptyBlock undocumented empty block
enumSwitch incomplete enum switch
fallthrough possible fall-through case
fieldHiding field hiding another variable
finalBound type parameter with final bound
finally + finally block not completing normally
forbidden + use of types matching a forbidden access rule
hiding macro for fieldHiding, localHiding, typeHiding and
maskedCatchBlock
incomplete-switch same as enumSwitch
indirectStatic indirect reference to static member
intfAnnotation + annotation type used as super interface
intfNonInherited + interface non-inherited method compatibility
javadoc invalid javadoc
localHiding local variable hiding another variable
maskedCatchBlock + hidden catch block
nls string literal lacking non-nls tag //$NON-NLS-<n>$
noEffectAssign + assignment without effect
null missing or redundant null check
over-ann missing @Override annotation
paramAssign assignment to a parameter
pkgDefaultMethod + attempt to override package-default method
raw usage of raw type
semicolon unnecessary semicolon, empty statement
serial + missing serialVersionUID
specialParamHiding constructor or setter parameter hiding another field
static-access macro for indirectStatic and staticReceiver
staticReceiver + non-static reference to static member
suppress + enable @SuppressWarnings
synthetic-access same as syntheticAccess
syntheticAccess synthetic access for innerclass
tasks(<tags separated by |>) tasks identified by tags inside comments
typeHiding + type parameter hiding another type
unchecked + unchecked type operation
unnecessaryElse unnecessary else clause
unqualified-field-access same as unqualifiedField
unqualifiedField unqualified reference to field
unused macro for unusedArgument, unusedImport, unusedLabel,
unusedLocal, unusedPrivate and unusedThrown
unusedArgument unread method parameter
unusedImport + unused import declaration
unusedLabel + unused label
unusedLocal + unread local variable
unusedPrivate + unused private member declaration
unusedThrown unused declared thrown exception
uselessTypeCheck unnecessary cast/instanceof operation
varargsCast + varargs argument need explicit cast
warningToken + unhandled warning token in @SuppressWarnings
Debug options:
-g[:lines,vars,source] custom debug info
-g:lines,source + both lines table and source debug info
-g all debug info
-g:none no debug info
-preserveAllLocals preserve unused local vars for debug purpose
Ignored options:
-J<option> pass option to virtual machine (ignored)
-X<option> specify non-standard option (ignored)
-X print non-standard options and exit (ignored)
-O optimize for execution time (ignored)
Advanced options:
@<file> read command line arguments from file
-maxProblems <n> max number of problems per compilation unit (100 by
default)
-log <file> log to a file. If the file extension is '.xml', then
the log will be a xml file.
-proceedOnError do not stop at first error, dumping class files with
problem methods
-verbose enable verbose output
-referenceInfo compute reference info
-progress show progress (only in -log mode)
-time display speed information
-noExit do not call System.exit(n) at end of compilation (n==0
if no error)
-repeat <n> repeat compilation process <n> times for perf analysis
-inlineJSR inline JSR bytecode (implicit if target >= 1.5)
-enableJavadoc consider references in javadoc
-Xemacs used to enable emacs-style output
-? -help print this help message
-v -version print compiler version
-showversion print compiler version and continue
分享到:
相关推荐
Java API文档通常包含在Java开发工具包(JDK)中,并可以通过Java编译器和Java虚拟机(JVM)使用。 Java API文档通常是通过Java开发工具包(JDK)中的文档生成器自动生成的。在JDK中,有一个命令行工具javadoc,可以通过...
Jad(JAva Decompiler)是一个Java的反编译器,可以通过命令行把Java的class文件反编译成源代码。 如果你在使用编写代码的时候遇到找不到源代码的第三方库,而且你又需要看看这个库的具体实现,那么你就需要使用这个...
安装JDK、配置环境变量,编译java源文件(可以用eclipse自动编译也可以手动命令行下编译),然后命令行下运行如下命令启动服务器端: java rmi.NetS 2000 (端口号为2000) 键入如下命令启动客户端: java...
Jocky混淆编译器是在Sun JDK中提供的Java编译器(javac)的基础上完成的,修改了其中的代码生成过程,对编译器生成的中间代码进行混淆,最后再生成class文件,这样编译和混淆只需要一个步骤就可以完成。另外可以在源...
V. Eclipse+CDT+MinGW 进行JAVA调用C/C++ 34 一、 安装eclipse3.2。 34 二、 安装MinGW。 34 1、 下载MinGW 34 2、 安装 34 3、 安装版本 34 4、 选择安装的编译器 34 5、 选择安装路径,下一步 35 6、 等待下载...
Jocky混淆编译器是在Sun JDK中提供的Java编译器(javac)的基础上完成的,修改了其中的代码生成过程,对编译器生成的中间代码进行混淆,最后再生成class文件,这样编译和混淆只需要一个步骤就可以完成。另外可以在源...
丢失import声明,忘记声明变量,没有分号,语法混淆,以及文本编辑器的排版都可能引起Java命令行编译器javac的反应,其结果就是显示若干页的错误信息。错误信息告诉你javac知道了错误,但是为什么不解决这个问题,让...
ASTExtractor是基于Eclipse编译器的Java源代码的抽象语法树(AST)提取器。 该工具充当Eclipse编译器的包装器,并允许以XML和JSON格式导出源代码文件或项目的AST。 该工具具有命令行界面,也可以用作库。 该文档位于...
我们不使用idea,Eclipse,在记事本编写编写*.java源代码保存,在目录用cmd打开命令行输入javac+源程序文件名可以编译为 .class的字节码文件 编写的程序最终都需要经过编译器编译成机器码才能被计算机执行。所以,...
CDT 是完全用 Java 实现的开放源码项目(根据 Common Public License 特许的),它作为 Eclipse SDK 平台的一组插件。这些插件将 C/C++ 透视图添加到 Eclipse 工作台(Workbench)中, 现在后者可以用许多视图和向导...
第一种方法是在 java 编译器(例如 Eclipse)中创建一个项目并将这些类添加到项目中 第二种方法涉及通过命令行运行它。 如果您选择后一种方式,请确保您的路径变量设置为 jde bin 文件。 然后,在 windows 命令提示...
/ 76 4.1 概述 / 76 4.2 JDK的命令行工具 / 76 4.2.1 jps:虚拟机进程状况工具 / 79 4.2.2 jstat:虚拟机统计信息监视工具 / 80 4.2.3 jinfo:Java配置信息工具 / 82 4.2.4 jmap:Java内存映像工具 / 82 4.2.5...
建议大家在入门的时候在命令行窗口编译和运行,不要借助JCreator或者Eclipse等IDE去帮助做那些事情。尝试自己这样做: javac -classpath yourpath *.java java -classpath yourpath *.class 也许很多人都能看懂,...
Jocky混淆编译器是在Sun JDK中提供的Java编译器(javac)的基础上完成的,修改了其中的代码生成过程,对编译器生成的中间代码进行混淆,最后再生成class文件,这样编译和混淆只需要一个步骤就可以完成。另外可以在源...
11.4 Java与CC++的编译器对比 11.5 本章小结 第五部分 高效并发 第12章 Java内存模型与线程 12.1 概述 12.2 硬件的效率与一致性 12.3 Java内存模型 12.3.1 主内存与工作内存 12.3.2 内存间交互操作 12.3.3...
首先我们需要明白一点——Eclipse作为一个灰常优秀的开发工具,它可被用作N多语言的IDE,然而前提是我们需要安装对应的编译器或者解释器。比如常见的Java开发,就必须JDK。因此要用Eclipse进行Python开发也必须...
人们当然可以只使用源文件将它们导入任何其他编辑器和/或从命令行编译和运行它们。 这里不会描述运行 Gradle 命令。 如果您选择这种方式,您应该已经知道如何去做。 下载项目 有两种方法可以下载这个项目。 你可以:...
Eclipse 或使用gradle jar构建。 竞争 制作了一个您认为可以在我们的服务器上运行的机器人? 请注意,我们直到 11 月才准备好上传 规格 如果您想对机器人进行编码,您应该查看该文件以了解有关可用指令和操作的详细...
GWT编译器能够翻译Java语言的大部分特性。包括支持Java语言中的基本类型、违例处理等,支持java.lang包和java.util包中的绝大部分类和接口,支持正则表达式和序列化。 2. 跨平台支持 如果你使用GWT中提供的显示组件...
克隆此存储库您可以在这里使用任何版本的eclipse 从Eclipse导入为Maven项目要进行编译,请将编译器设置为“ Jre 1.8” 我将xml用作命令行参数,因此在运行测试时,请输入要测试的任何xml文件 Validate.java具有业务...