Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 07-16-2007, 03:13 AM   #1
Registered: Mar 2007
Posts: 62

Rep: Reputation: 15
Thumbs up Installing java for tomcat help me

Hello guys,
I have deploy the tomcat server remotely. i have downloaded jdk-1_5_0_04-linux-i586-rpm.bin and jakarta-tomcat-5.0.28.tar. Now i have to install java basically i don't know where it will be installed. i need the this path to be install and need to create symbolic link for tomcat. so with following requirement can you help me to create it.

path /usr/java/jdk1.5.0_11/bin/javac

so my java has to be installed in /usr/java/jdk1.5.0_11/bin

And how can i specify the symbolic link for java.
Is this correct
ln -s /usr/java/jdk1.5.0_11 /bin/javac /usr/bin/javac
ln -s /usr/java/jdk1.5.0_11 /bin/java /usr/bin/java

please help me i was confused here can you guys help me to understand the installation of java and symbolic link creation for java.
Old 07-16-2007, 06:39 PM   #2
LQ Guru
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 131Reputation: 131
It would certainly help if you told us which distribution. On Fedora, you would get the jdk.rmp.bin from Sun, then
chmod +x jdkx.x.x
rpm -ivh jdkx.x.x.rpm

And that will install it by default exactly where you need it to be. As for the symlinking, I don't see why you would need that. All you need to do is set this in /et/profile
export JAVA_HOME=/path/to/jdkx.x.x


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Installing LDAP,POSTGRE,Tomcat+Java RahulOP Linux - Software 3 03-29-2006 01:44 AM
Java, apache, tomcat @ngelot Linux - Software 0 11-03-2005 06:55 AM
installing java (trying to get tomcat to work) twistedrhymes Linux - Software 1 07-03-2005 01:00 PM
run java and tomcat varunbihani Linux - Software 2 09-17-2003 05:05 AM
java ant tomcat j-ray Linux - Software 1 09-12-2002 12:59 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:36 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration