【问题标题】:Using -target higher than -source with javac在 javac 中使用高于 -source 的 -target
【发布时间】:2013-03-14 12:06:10
【问题描述】:

我的机器上安装了一个使用JDK 1.4.1JDK 1.7 编写的项目。我可以使用以下代码构建那些 1.4-sources

javac @sources.txt -source 1.4 -target 1.4 -deprecation -classpath %cp% -Xstdout log.txt -d .\classes

可以用-source 1.4 -target 1.7组合运行吗?


另外我很好奇,如果我在安装了 JDK 1.7.1 的系统上运行使用 JDK 1.4.1 编写的应用程序,会有什么性能提升吗?

【问题讨论】:

标签: java performance compilation


【解决方案1】:

有可能,但是,我认为您这样做不会赢得性能。此外,您不想这样做是有原因的,请参阅JDK, JRE an JARs compatibility

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-02-11
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多