Here is a tutorial on how to install the latest Java 7 JDK and JRE on a Debian Linux system:
1 2 3 4 5 6 7 8 9 10 11 12 13 | apt-get update && apt-get upgrade -y sudo apt-get install sun-java6-jdk -y mkdir /tmp/downloads && cd /tmp/downloads wget http://download.oracle.com/otn-pub/java/jdk/7u2-b13/jdk-7u2-linux-i586.tar.gz tar -xvf jdk-7u2-linux-i586.tar.gz mv /tmp/downloads/jdk1.7.0_02 /usr/lib/jvm mv /usr/lib/jvm/jdk1.7.0_02 /usr/lib/jvm/java-7-oracle sudo update-alternatives --install "/usr/bin/java" "java" "/usr/lib/jvm/java-7-oracle/bin/java" 1 sudo update-alternatives --install "/usr/bin/javac" "javac" "/usr/lib/jvm/java-7-oracle/bin/javac" 1 sudo update-alternatives --install "/usr/bin/javaws" "javaws" "/usr/lib/jvm/java-7-oracle/bin/javaws" 1 sudo update-alternatives --config java java -version rm -r /tmp/downloads |