Step 1: Get the Latest Sun JVM for Debian Linux Platform. Click here
Step 2: Installing Java on Debian is an easy task, there is a package that can do all the hard task for you. The package is “java-package” which can be installed with:
“apt-get -u install java-package”
Ensure the repository is up to date before installing this package, as you might encounter some problems.
Step 3: Here you create the “.deb” package from the file. You have to be a non-root user to perform this step. Create a temporary directory and copy the java file “.bin” into it. Enter the following command:
“Newroot make-jpkg jdk-1_5_0-linux-i586.bin”
You can Change the name of the Java “.bin” if you have to.
Now you can install the package as a root, if successful it should show:
The Debian package has been created in the current directory. Youcan install the package as root (e.g. dpkg -i sun-j2sdk1.5_1.5.0+update00_i386.deb).
Step 4: You have to be root to issues the command here, so if you’re not root, switch over to root.
“dpkg -i sun-j2sdk1.5_1.5.0+update00_i386.deb”
If this is not the name of your package you can specify another one, you should get the name from the previous success message.
Testing: The Testing is easy. Just run the following command:
“java -version”
It would be okay to run the command as root and normal user to ensure everything is working fine. You should the following output:
java version "1.5.0"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-b64)
Java HotSpot(TM) Client VM (build 1.5.0-b64, mixed mode, sharing)