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.

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.

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).

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.