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.

Related posts:

  1. Managing Packages in Ubuntu
  2. Setting up ddclient on Ubuntu
  3. Running Windows Application on Ubuntu
  4. Scheduling Tasks in Ubuntu/Linux
  5. Ubuntu Quickstart Guide
This entry was posted in Java, Ubuntu and tagged , . Bookmark the permalink.

Comments are closed.