OS: Debian GNU/Linux etch
javac コマンドを実行すると「Eclipse Java Compiler」と表示される。
$ javac
Eclipse Java Compiler v_677_R32x, 3.2.1 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 -warn:none disable all warnings
-?:warn -help:warn display advanced warning options
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 コマンドは Sun の JVM らしい。
$ java -version
java version "1.5.0_14"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_14-b03)
Java HotSpot(TM) 64-Bit Server VM (build 1.5.0_14-b03, mixed mode)
$ dpkg -l | grep jdk
ii sun-java5-jdk 1.5.0-14-1etch1 Sun Java(TM) Development Kit (JDK) 5.0
tags: zlashdot Java Debian Java
Posted by NI-Lab. (@nilab)