Definitely use the Sun JDK from the Ubuntu repositories.
1. Make sure you have the "multiverse" repositories enabled.
2. Install all Sun Java 6 packages...
Code:
sudo apt-get clean
sudo apt-get update
sudo apt-get install sun-java6*
3. Check that you are using the newly installed JDK...
The output should be something like...
4. Check that you are using the correct JRE...
The output should be something like...
Code:
java version "1.6.0_06"
Java(TM) SE Runtime Environment (build 1.6.0_06-b02)
Java HotSpot(TM) Client VM (build 10.0-b22, mixed mode, sharing)
If you find you are not using the correct Sun Java 6 JRE you can fix it by...
Code:
sudo update-alternatives --config java
The above command will let you choose which JRE to make default if you have multiple JRE's installed.
Bookmarks