no

How to Replace Openjdk7 With 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 ...

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

Related

ubuntu 389581294549609560

Post a Comment Default Comments

item