Looking for a JavaEE Architect or Potential Tech Co-Founder?
Please don't hesitate to contact me.

Replace openjdk7 with sun-java 1.6 in ubuntu

Note that I'm using ubuntu 11.10 Oneiric Ocelot

1.) Execute the following commands:
sudo apt-get install python-software-properties
sudo add-apt-repository ppa:ferramroberto/java
sudo apt-get update
sudo apt-get install sun-java6-jdk sun-java6-plugin
2.) Make sun-java the default jdk:
sudo update-alternatives --config java
3.) It should show
Selection    Path                                      Priority   Status
------------------------------------------------------------
* 0            /usr/lib/jvm/java-6-openjdk/jre/bin/java   1061      auto mode
  1            /usr/lib/jvm/java-6-openjdk/jre/bin/java   1061      manual mode
  2            /usr/lib/jvm/java-6-sun/jre/bin/java       63        manual mode
 
Press enter to keep the current choice[*], or type selection number: 2
4.) Verify that you have the correct java sdk installed
java -version
Replace openjdk7 with sun-java 1.6 in ubuntu Replace openjdk7 with sun-java 1.6 in ubuntu Reviewed by Edward Legaspi on Tuesday, May 15, 2012 Rating: 5

No comments:

Powered by Blogger.