Official package information is found here:
http://packages.ubuntu.com/dapper-backports/sun-java6-jdk
The download link to the amd64 package takes you to the page with instructions on how to add the repository to the source list: http://packages.ubuntu.com/dapper-backports/amd64/sun-java6-jdk/download
The information above must be sufficient to install either JRE or JDK.
Now, the steps:
- Edit /etc/apt/sources.list
- Code: Select all
vi /etc/apt/sources.list
- Add the following line:
- Code: Select all
deb http://mirrors.kernel.org/ubuntu/ubuntu dapper-backports main multiverse
- Save the file.
- Run
- Code: Select all
apt-get update
- To install JRE, run
- Code: Select all
apt-get install sun-java6-jre
- To install JDK, run
- Code: Select all
apt-get install sun-java6-jdk
- Checking JRE version:
- Code: Select all
java -version
- Checking JDK version:
- Code: Select all
javac -version
You might or might not need additional steps described (or not) in the original thread. Let me know if you get an error and I'll post it here if it's required.

