So, this howto should work. I tried it yesterday and it works now. It could be that you have to leave out the "" at update-alternatives. I cant try at the moment because im not @work.
Maybe someone can edit the wiki.
1) Download the jdk-6-linux-i586.bin from http://java.sun.com to the deskto
2) chmod +x jdk-6-linux-i586.bin
3) .\jdk-6-linux-i586.bin
4) mv jdk1.6.0 /usr/lib/Java6
5)
update alternatives --install "/usr/bin/java" "java" "/usr/lib/Java6/bin/java" 1
update alternatives --set java /usr/lib/Java6/bin/java
update alternatives --install "/usr/bin/javac" "javac" "/usr/lib/Java6/bin/javac" 1
update alternatives --set javac /usr/lib/Java6/bin/javac
update alternatives --install "/usr/bin/javaws" "javaws" "/usr/lib/Java6/bin/javaws" 1
update alternatives --set javaws /usr/lib/Java6/bin/javaws
update alternatives --install "/usr/bin/apt" "apt" "/usr/lib/Java6/bin/apt" 1
update alternatives --set apt /usr/lib/Java6/bin/apt
6) Test the installation
java -version
javac -version
ant
apt
Maybe someone can edit the wiki.
1) Download the jdk-6-linux-i586.bin from http://java.sun.com to the deskto
2) chmod +x jdk-6-linux-i586.bin
3) .\jdk-6-linux-i586.bin
4) mv jdk1.6.0 /usr/lib/Java6
5)
update alternatives --install "/usr/bin/java" "java" "/usr/lib/Java6/bin/java" 1
update alternatives --set java /usr/lib/Java6/bin/java
update alternatives --install "/usr/bin/javac" "javac" "/usr/lib/Java6/bin/javac" 1
update alternatives --set javac /usr/lib/Java6/bin/javac
update alternatives --install "/usr/bin/javaws" "javaws" "/usr/lib/Java6/bin/javaws" 1
update alternatives --set javaws /usr/lib/Java6/bin/javaws
update alternatives --install "/usr/bin/apt" "apt" "/usr/lib/Java6/bin/apt" 1
update alternatives --set apt /usr/lib/Java6/bin/apt
6) Test the installation
java -version
javac -version
ant
apt
Comment