I know its possible to install multiple JRE on a single computer. Is there any easy way when you create an executable Jar file to specify which one you should use? Or will it always use the one the JAVA_HOME environment variable is pointing too?
Is there any simple solution to managing multiple JVM's for multiple applications? If x application needs Java 1.4 and y application needs Java 5?
Any help or links to a howto/explanation are greatly appreciated.
That makes sense and I know Sun has done a lot of work to make sure each release is backwards compatible with previous versions, but I know it isn't always.
I guess I always thought it would be nice if there was a mechanism for specifying. I guess writing batch/or script files that specify which version to use. Maybe I should be looking into JNLP? Looking at the Java Control Panel (at least on a windows machine), I can open a window that will list all of the Java Runtime Versions installed on the machine (along with their paths). Each different product (Full release number e.g. 1.5.0_02 or 1.4.2_04 etc) has its platform (1.5 or .14 in my case) and a checkbox for enabling (multiple platforms/products are enabled).
So obviously Sun has created a mechanism for keeping track of different Runtimes installed on a machine. Is this mechanism only available to JNLP/Webstart programs or am I assuming to much here, and isn't even available for webstart applications?