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 ...
https://www.czetsuyatech.com/2012/05/ubuntu-install-sun-jdk.html
Note that I'm using ubuntu 11.10 Oneiric Ocelot
1.) Execute the following commands:
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-plugin2.) Make sun-java the default jdk:
sudo update-alternatives --config java3.) 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: 24.) Verify that you have the correct java sdk installed
java -version
Post a Comment