且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

JRE 1.4是否支持使用Java 1.5和Linux编译的类。 1.6?

更新时间:2023-01-14 23:24:19

如果您只是使用 javac 1.6的默认值,您的类文件将无法在旧版本的Java上运行。

If you just build with the defaults of javac 1.6, your class files will not work on old versions of Java.

***方式编译旧Java只是为了使用较旧的JDK版本。但如果你真的想尝试从较新的Java编译,这里有一些说明:

The best way to compile for older Java is just to use the older JDK releases. But if you really want to try to compile for older Java from newer, here are some instructions:

  • How to cross-compile for older platform versions
  • Source, target, class file version decoder ring