Blogs Blogs

« Back

Setting Default JVM in Ubuntu

There are circumstances where you may need to have more than one version of Java installed, but how do you switch between them?

Execute the following command to list the installed JVMs:

$ sudo update-alternatives --config java

Simply enter the number for the JVM to use. The * shows the current selected JVM.