javac source and target options

后端 未结 4 1010
北海茫月
北海茫月 2020-11-27 19:04

I have seen the compile options like discussed in Which JDK's distributions can run `javac -source 1.6 -target 1.5`?. I understand the individual options for source and

4条回答
  •  遥遥无期
    2020-11-27 19:26

    JDK1.8 will no longer support -source and -target less than 1.6

    "c:\Program Files\Java\jdk1.8.0_121\bin\javac.exe" -source 1.3 HelloWorld.java
    warning: [options] bootstrap class path not set in conjunction with -source 1.3
    warning: [options] source value 1.3 is obsolete and will be removed in a future release
    warning: [options] target value 1.4 is obsolete and will be removed in a future release
    warning: [options] To suppress warnings about obsolete options, use -Xlint:-options.
    4 warnings
    

提交回复
热议问题