jdk

Mint 12 (/Ubuntu): Set up Java alternatives

Saturday, February 18th, 2012 | Java, Linux, Tech-savvy | 2 Comments

Your modern Linux distro will provide you with a more or less decent Java setup by default. Mint 12 comes with a Sun JDK 1.6.0.26 pre-installed. To switch between installed versions of your Java runtime use the

update-java-alternatives --list

command to list installed alternatives and

update-java-alternatives --set alternative

to switch them. If you still want to have different versions of the JDK you can always download them manually, untar and use them directly. So far so good.

I wanted to be able to switch my downloaded JDKs as easy as the pre-installed ones, so I was looking for a way to add my JDKs to my system’s repository. So here is how it’s done (it’s basically a copy of a nice post I found, I just wanted to spread the knowledge) – it’s a bit painful but made me feel quite good when I was done :) › Continue reading

Tags: ,

Search

Categories