Raspberry Pi - Change Default Java Virtual Machine (JVM)
Saturday, August 25, 2012 at 7:33PM
Robert Savage in Embedded Computing, Java, JavaFX, Raspberry Pi, Raspberry Pi, java, jdk, jre, jvm, pi, raspberry

You can install multiple Java virtual machines (JVM) on your Raspberry Pi and switch between them as needed.  After installing the JVMs that you want, use the following command to select the default JVM/JRE.  

sudo update-alternatives --config java

With the new JVM selected, you can test and verify that is is the new default by  executing the java command using the version argument.

java -version

You should a response displaying the selected java version and VM:

* Raspberry Pi is a trademark of the Raspberry Pi foundation.
* Oracle and Java are registered trademarks of Oracle.

Article originally appeared on SHA (http://www.savagehomeautomation.com/).
See website for complete article licensing information.