PDA

View Full Version : [ubuntu] How to set sun-java6 as default other than openjdk?



Olnex
June 27th, 2008, 02:43 AM
After installing ubuntu-restricted-extra, it pulls some openjdk packages, then I install sun-java-* but the default 'java' in command line is still openjdk, I tried to remove openjdk but it also removes other related packages.

lazyart
June 27th, 2008, 03:30 AM
sudo update-alternatives --config java

starcannon
June 27th, 2008, 03:33 AM
The way I deal with this annoyance is to uninstall open-jdk and then install sun-java-6.

Package manager takes care of removing and adding packages I need anyway /shrug, no problems yet.