0

Does the binary of JVM (e.g. java.exe) provide an option to work in a backward compatible mode?
My problem is I have JRE 1.6.0_01 installed on my machine and I have an application that requires JRE 1.4.2_XX. I don't want to install JRE 1.4.2 only for this one application.

PS: javac supports "-target=version" to generate class files for target VM version.

Thanks.

3
Contributors
2
Replies
3
Views
10 Years
Discussion Span
Last Post by jwenting
0

If you simply want to run already compiled classes, you should not need to do anything special (AFAIK).

If you wish to compile 1.4 sources, then you also need the -source=version argument for javac.

0

The runtime is backwards compatible (if the code was originally written by someone who's not a complete moron for using classes that are clearly mentioned you should not use).

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.