So open your terminal, and let's go:
sudo add-apt-repository ppa:ferramroberto/java
sudo apt-get update
sudo apt-get install sun-java6-jdk sun-java6-jre sun-java6-plugin sun-java6-fonts
And that's it. Hope it's helpful. Now if you want to ensure Sun's JRE & JDK are the default, type in the terminal:
sudo update-alternatives --config javaand select your preferred alternative from the list. To select a Java compiler, type
sudo update-alternatives --config javacNow on to the testing. You should get the version numbers of the currently installed and default runtime and compiler by typing (in the terminal):
java -version
javac -version
No comments:
Post a Comment