Here is solution how to install newer java packages manually on Debian Squeeze.
Download the package and unpack it in /usr/lib/jvm/
# zcat jdk-7u71-linux-i586.tar.gz|tar xvf -Now use update-alternatives script to add it to /etc/alternatives
# mv jdk1.7.0_71 /usr/lib/jvm/java-1.7
# chown -R root:root /usr/lib/jvm/java-1.7/*
# update-alternatives --install "/usr/bin/java" "java" "/usr/lib/jvm/java-1.7/bin/java" 1Now set the new java binaries as default (choose the one with the right path):
# update-alternatives --install "/usr/bin/javaws" "javaws" "/usr/lib/jvm/java-1.7/bin/javaws" 1
# update-alternatives --install "/usr/bin/javac" "javac" "/usr/lib/jvm/java-1.7/bin/javac" 1
# update-alternatives --config java
# update-alternatives --config javac
# update-alternatives --config javaws
No comments:
Post a Comment