bugged.be

"Think outside the [B0X]"
Icon

update-alternatives for java

Install:

sudo update-alternatives --install /usr/bin/javac javac /usr/lib/jvm/jdk1.6.0_32/bin/javac 1
sudo update-alternatives --install /usr/bin/java java /usr/lib/jvm/jdk1.6.0_32/bin/java 1
sudo update-alternatives --install /usr/bin/javaws javaws /usr/lib/jvm/jdk1.6.0_32/bin/javaws 1

Config:

udo update-alternatives --config javac
sudo update-alternatives --config java
sudo update-alternatives --config javaws

Test it:
java -version

Category: Dev notes, Java, Linux

Tagged: