How to install Java1.5 and Tomcat5.5 on Debian 3.1r2
Installing java With java-package/make-jpkg
Installing java With java-package/make-jpkg The installation method described in this document uses the java-package and related packages to create a .deb package of the Sun and Blackdown JRE/JDK .bin self-extracting archives, or the IBM JRE/JDK .tgz archives.The java-package is present in the contrib, section, make sure it is included in your APT sources ( /etc/apt/sources.list )
Example for Debian 3.1 'sarge' deb http://ftp.us.debian.org/debian sarge main contrib non-free After making sure of that,
execute #apt-get update to make sure the lists of the available packages are up to date.
Then execute #apt-get install java-package fakeroot
to Install java-package and fakeroot in Debian
Now you are ready to create the deb package of the Sun or Blackdown Java self-extracting .bin archive, or the IBM Java .tgz archive by using make-jpkg. In this example the Java 1.5.0 JRE is used. Note to execute this as a normal user by using fakeroot (which was installed as a dependency of java-package) as make-jpkg cannot be executed as root. Also execute the command from the same directory the JRE/JDK .bin/.tgz file is in, or provide the full or relative path to the JRE/JDK .bin/.tgz file.
execute #fakeroot make-jpkg your java binary file.bin
ex. fakeroot make-jpkg jdk-1_5_0_06-linux-i586.bin
*Some warnings may appear during the creation of the deb package. As long as the deb package gets created the warnings are nothing to worry about. The deb package is created in the same directory as the command was executed from.
Install your new Deb package
Execute #dpkg -i your java deb file.deb
ex. #dpkg -1 j2sdk1.5-sun.deb
Verify your installation
#java --version
The output should look something like this if everything is well
java version "1.5.0_02"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_02-b09)Java HotSpot(TM)
Now set JAVA_HOME and JRE_HOME
*add system variable at /etc#environment or user variable at .bash_profile on home/user#
ex. #export JAVA_HOME=/usr/lib/j2sdk1.5-sun
Then extract your tomcat5.5 binary file to your system
I put them at /usr/share/tomcat
to take execute permission for shell script on /tomcat/bin#
execute #chmod a+rx *.sh
Now you are ready to play with your tomcat5
Start the tomcat instance execute
#sh startup.sh
Pushpakumara

0 Comments:
Post a Comment
<< Home