Skip to content

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

Post a Comment

Your email is never published nor shared. Required fields are marked *
*
*

*
To prove you're a person (not a spam script), type the security word shown in the picture.
Anti-spam image

zopim