Hello, I am working on a Linux Ubuntu 8.10 and I would like to install a second JVM. I am currently working with Java 1.6, but I want to install Java 1.4 and afterwards, set the 1.4 JVM as my default JVM, to work with. How could I do that? Thanks in advance!
+1
A:
Just install the package you want. After that you're able to switch java implementations using update-java-alternatives
See Help pages for more.
Marcin Gil
2009-04-15 12:04:28
+1
A:
With Linux, you can install multiple JVMs without conflict (unlike Windows, where the registry is updated).
Your "default" JVM is controlled in two ways: if you're executing java from the command line, it's the PATH environment variable. That is described in any Unix reference.
The other way is the file ${HOME}/.java/deployment/deployment.properties, which is used by Java Webstart and the Java Browser Plugin. You'll find several configuration variables in this file that refer to the version. Your safest approach is to rename the .java directory before installing an earlier version.
kdgregory
2009-04-15 12:05:33