How to change JVM in Ubuntu

On March 25, 2011, in Ubuntu, by lucasterdev

Some people like to have to more that one JVM on their platform.
For example, I have both OpenJdk and Sun JVMs.
The command to switch between one and the other is the following:

sudo update-alternatives --config java

How to install Oracle JDK:

sudo apt-get install sun-java6-jdk

 

Leave a Reply