sudo apt-get install sun-java6-jdk sun-java6-jre sun-java6-source
[/sourcecode]
[sourcecode language="bash"]
sudo update-java-alternatives -s java-6-sun
[/sourcecode]
Kemudian tutup semua konsole / terminal, dan buka terminal baru, ketikkan command berikut :
[sourcecode language="bash"]
java -version
[/sourcecode]

Sumber ::
http://askubuntu.com/questions/21131/how-to-correctly-remove-openjdk-and-jre-and-set-the-system-use-only-and-only-sun
[…] http://saifiahmada.wordpress.com/2012/06/10/mengganti-openjdk-menjadi-sun-jdk-ubuntu-10-10/ […]
ReplyDelete