Setting Default JVM on Ubuntu

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

Tagged on: ,

Leave a Reply

Your email address will not be published. Required fields are marked *