Replace OpenJDK with Oracle-SunJDK on Ubuntu 10.10
By default Ubuntu 10.10 (32-bit) installs OpenJDK for JRE, JDK. Since OpenJDK tries to replace the properietry pieces of Sun-JDK, this is a nice project, however, there is still time before it grasps all the specs and works flawlessly.
Before we begin, type: java -version, at the command prompt, and you will see that the version is a Open-JDK version.
To Replace Sun-JDK with Open-JDK follow the setps below:
1. Enable partner repositories :
- Open System -> Administration -> Synaptics Package Manager
- In the Package Manager > Settings menu > Repositories, and check the box for Software restricted by copyright or legal issues
2. Install Sun-JDK
sudo apt-get install sun-java6-jdk sun-java6-jre sun-java6-source sun-java6-fonts sun-java6-bin sun-java6-plugin
3. Replace OpenJDK with SunJDK
sudo update-java-alternatives -v -s java-6-sun
To Double check, type: java -version, and you should see the Sun-Java version details.