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 ...

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