Sometimes its hard to avoid installing multiple Java Virtual Machines (JVM) on your computer because it has something to do with application compatibility or software development purposes.
This creates an annoyance when you just want to run one of the JVM instead of another for a specific task, then having to switch to another JVM for other tasks.
Here’s an easy way to setup a default JVM (Java interpreter and javac) and switch between several JVM in Ubuntu / Debian based distribution.
From the console execute
sudo update-alternatives --config java
Then you’ll be presented with this menu,
Select the Java distribution which best suits you and press enter. You’re done. You can always change the default JVM for your Ubuntu/Debian distribution by repeating this steps.
Keep updated with the latest posts, be a part of over 1,000 subscribers! : Subscribe to your email
You might also want to read...
- Pocket PC may now have Java 1.5.0 supports
- How to install Java Runtime and JDK in Ubuntu Linux
- I’m Officially a Debian GNU/Linux user now!
- Install Java 5 SDK and Java JRE in Ubuntu
- Sun has Open Source Java under GNU/GPL
- Installing Java 2 SDK on Debian GNU/Linux and Ubuntu
- Does anyone here still uses Java Applets?