Jdk11Tools
javac
https://docs.oracle.com/en/java/javase/11/tools/javac.html#GUID-AEEC9F07-CB49-4E96-8BC7-BCC2C7F725C9
-source
-target
-source release
Specifies the version of source code accepted. The following values for release
are allowed:
Beginning with JDK 9, javac
no longer supports -source
release settings less than or equal to 5
. If settings less than or equal to 5
are used, then the javac
command behaves as if -source 6
were specified.
1.6
No language changes were introduced in Java SE 6. However, encoding errors in source files are now reported as errors instead of warnings as was done in earlier releases of Java Platform, Standard Edition.
6
Synonym for 1.6.
1.7
The compiler accepts code with features introduced in Java SE 7.
7
Synonym for 1.7.
1.8
The compiler accepts code with features introduced in Java SE 8.
8
Synonym for 1.8.
9
The compiler accepts code with features introduced in Java SE 9.
10
The compiler accepts code with features introduced in Java SE 10.
11
The default value. The compiler accepts code with features introduced in Java SE 11.
-target release
Generates class files for a specific VM version.
–release
–release release
Compiles against the public, supported and documented API for a specific VM version. Supported release
targets are 6
, 7
, 8
, 9
, 10
, and 11
.
Java
refer to : https://docs.oracle.com/en/java/javase/11/tools/java.html#GUID-3B1CE181-CD30-4178-9602-230B800D4FAE
文章作者:Administrator
文章链接:http://localhost:8090//archives/jdk11tools
版权声明:本博客所有文章除特别声明外,均采用CC BY-NC-SA 4.0 许可协议,转载请注明出处!
评论