Setting Default JVM on Ubuntu

· · Quick Tricks

Heard of ‘update-alternatives’ on Linux? It’s a smart utility to find various versions of one software and set default.

For example, you may have GNU Java as well as Sun Java. (frankly saying, I hate GNU Java, aka gcj)

sudo update-alternatives --config java

[ Where can I see all installed JVM?
On Ubuntu, Java Virtual Machines are installed in /usr/lib/jvm. You can see java-gcj here which comes by default with Ubuntu.
]
- ankit

Tags: code, java

← All posts