LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Installing java for tomcat help me (https://www.linuxquestions.org/questions/linux-newbie-8/installing-java-for-tomcat-help-me-569710/)

karthi26 07-16-2007 02:13 AM

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.

jay73 07-16-2007 05:39 PM

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


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