LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 07-16-2007, 02:13 AM   #1
karthi26
Member
 
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, 05:39 PM   #2
jay73
LQ Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 133Reputation: 133
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
./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
 
  


Reply



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 12:44 AM
Java, apache, tomcat @ngelot Linux - Software 0 11-03-2005 05:55 AM
installing java (trying to get tomcat to work) twistedrhymes Linux - Software 1 07-03-2005 12:00 PM
run java and tomcat varunbihani Linux - Software 2 09-17-2003 04:05 AM
java ant tomcat j-ray Linux - Software 1 09-12-2002 11:59 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:45 PM.

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