How to install Sun Java on Debian
Installing java on Debian is a kind of tricky steps. It is not necessary to follow below procedures if you don't care about what Sun will do on your linux box and you don't care about unknown files after uninstallation. You should create a deb package for each Java package for easily management later.
-
Install
fakerootandjava-package.apt-get install fakeroot java-packageIf you can't find
java-package, add below lines to/etc/apt/sources.list.deb http://ftp.us.debian.org/debian/ stable contrib deb-src http://ftp.us.debian.org/debian/ stable contrib -
Download JDK 5.0 from http://java.sun.com/javase/downloads/index.jsp. Don't forget to get the latest update. For me it is JDK 5.0 Update 8. Finally, you should get
jdk-1_5_0_08-linux-i586.binor something like this. -
Run
make-jpkgas follow.fakeroot make-jpkg jdk-1_5_0_08-linux-i586.bin -
Verify detected version and press
Y. -
Enter your full name.
-
Enter your email address.
-
Press
Enterto continue. -
Press
Spacebaruntil reach the end of license terms -
Press
yesto agree. -
Wait a few minutes and you will get
sun-j2sdk1.5_1.5.0+update08_i386.deb -
Install the deb package.
dpkg -i sun-j2sdk1.5_1.5.0+update08_i386.deb
- sugree's blog
- 699 reads


Post new comment