- Download the Java Development Kit (or Runtime Environment) for Linux, self-extracting.
build-essentialpackages:# apt-get update # apt-get install java-package build-essential
- Create a Debian package from the Java Linux, self-extracting file downloaded in step 1 and install the resulting package:
$ fakeroot make-jpkg sun-j2sdk1.5_.bin $ sudo dpkg -i sun-j2sdk1.5_.deb
- Register the new package as the default Java environment:
# update-alternatives --config java
- Define the Java-home environment variable by adding the following line into