eclipse的java编译器命令行

来源:互联网 发布:matlab矩阵行交换 编辑:程序博客网 时间:2024/05/29 21:30
汗,刚刚突然发现我的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
















 
原创粉丝点击
热门问题 老师的惩罚 人脸识别 我在镇武司摸鱼那些年 重生之率土为王 我在大康的咸鱼生活 盘龙之生命进化 天生仙种 凡人之先天五行 春回大明朝 姑娘不必设防,我是瞎子 妻子的绒癌怎么办?——急人! 孕妇结石掉在输尿管有血尿怎么办 吃葯时药片沾在食管臂上怎么办 八十多了膀胱癌手术复发了怎么办 尿蛋白和尿隐血2个加怎么办 小肝癌手术后两个月又复发了怎么办 膀胱癌血尿堵塞尿道和尿管怎么办 肾炎腰疼一条腿疼尿血怎么办 孕晚期尿常规检查尿蛋白高怎么办? 腰开车疼的不会动了怎么办 小孩跑完满头大汗就咳嗽怎么办 小孩剧烈咳嗽喘吃了药不管用怎么办 做什么事都有点轻微的手抖怎么办 见到喜欢的人做事情就手抖怎么办 做了尿结石手术还尿血怎么办 宝宝十一个大运动发展缓慢怎么办 一岁八个月宝宝肚里有蛔虫怎么办 孕妇5个月了缺碘怎么办 4个月婴儿折了下腰怎么办 签了居间合同网签合同有异议怎么办 魅族3s手机返回键失灵怎么办 英语冠词和名词的关系用不好怎么办 炸好了的肉梭子不脆了怎么办 跑步的时候胸抖的疼怎么办 小区内安装了乒乓球桌扰民了怎么办 裁判出示红牌如果球员不走怎么办 高三文化课不好又没有特长怎么办 孩子做事磨蹭拖拉不讲效率怎么办 宝贝幼儿园哭的嗓子哑了怎么办 我给孩子转学学校不接收怎么办 眼睛被太阳晒了胀豉豉的怎么办 电脑电源灯亮着屏幕是黑的怎么办 刚办健身卡健身房跑路了怎么办 孕妇怀孕初期胖的太快怎么办 魔幻陀螺二的陀螺拆不动怎么办 我不干了小厂不给我发工资怎么办 货车司机把人撞成重伤没钱出怎么办 房主卖房定金收了不想卖怎么办 领导迟迟不给升职加薪机会怎么办 加工中心铣圆进出刀有接刀痕怎么办 烧茄子时炸茄子茄子太吸油怎么办?