Download the bin file from the java website:
http://java.sun.com/products/archive/
Install the package as root:
su – root
Change the execute rights:
chmod 700 jdk_*.bin
Execute the bin:
./jdk_*.bin
Java will be installed in /usr/java/
export JAVA_HOME=/usr/java/jdk…
export PATH=$JAVA_HOME/bin:$PATH
Now you can check if everthing is ok by:
which java
java -version
In debian server you can do it in one command and no manal downloading.
with just one command, no [...]
