Weblog entry #1 for andershedstrom
Install Sun JDK 5 on Debian 3.1
This is a short and easy HOW-TO guide. It describes in a few steps how to install Suns JDK 5 on Debian 3.1. This is not the only way to accomplish this task, but this is the way I take. I do not issue any guarantee that this will work for you and your system (but it should with some tweaking).
System Details
The system used in this how-to guide has the following installed:
Operating System: Debian Sarge (3.1) the base system.
HOW-TO GUIDE
· Download Suns JDK 5 to your preferred download directory. (I chose the self-extracting binary file).
· Change to the directory where you want to install JDK 5. I chose /usr/local/lib
> cd /usr/local/lib |
· Switch to root user and execute the self-extracting file you downloaded
> suPassword:> /home/download/jdk-1_5_0_06-linux-i586.bin |
· Accept the license agreement.
· Now you should have a directory named jdk1.5.0_06 in /usr/local/lib
· Create a symbolic link called jdk to this directory. It allows you to easily switch back and forth between different jvms.
> ln s jdk1.5.0_06 jdk |
· You now need to set and update some environment variables. Open /etc/profile and delete the line export PATH and add the following
JAVA_HOME=/usr/local/lib/jdkPATH=$PATH:$JAVA_HOME/bin export PATH JAVA_HOME |
/etc/profile is executed at start-up and when the user log on the system. For you to update your environment you need to log out and log on the system.
· After youve logged out and on to the system again, you can verify your installation be executing the following commands
> echo $JAVA_HOME/usr/local/lib/jdk > which java /usr/local/lib/jdk/bin/java > java version Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-b05) Java HotSpot(TM) Client VM (build 1.5.0_06-b05, mixed mode, sharing) |
Comments on this Entry
# apt-get install fakeroot java-package $ fakeroot make-jpkg sun-j2re1.5_1.5.0+update06_i386.bin # dpkg -i sun-j2re1.5_1.5.0+update06_i386.debThe README.Debian sys it also works with the JDK ;)
[ Parent | Reply to this comment ]