LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Tomcat 5 binary installation...problems! (https://www.linuxquestions.org/questions/linux-software-2/tomcat-5-binary-installation-problems-139140/)

vous 01-27-2004 05:36 AM

Tomcat 5 installation...problems!
 
Hello All,

I have just installed the following Java 2 Platform, Standard Edition, v 1.4.2 (J2SE)

File name:

j2eesdk-1_4-dr-linux-eval

I am setting up the user environment and I can't find what the appropiate setting for the JAVA_HOME variable is?

According to the Tomcat docs:

"...* Install the JDK according to the instructions included with the release.

* Set an environment variable JAVA_HOME to the pathname of the directory
into which you installed the JDK release....."

After installing Java 1.4x I ended up with these dirs:

drwxr-xr-x 11 joe users 480 2004-01-27 14:55 .
drwxr-xr-x 8 joe users 760 2004-01-27 15:04 ..
-rw-r--r-- 1 joe users 43446 2004-01-27 14:53 3RD-PARTY-LICENSE.txt
-rw-r--r-- 1 joe users 4004 2004-01-27 14:53 COPYRIGHT
-rw-r--r-- 1 joe users 14413 2004-01-27 14:53 LICENSE.txt
-rw-r--r-- 1 joe users 1306677 2004-01-27 14:52 appserv-uninstall.class
drwxr-xr-x 2 joe users 400 2004-01-27 14:54 bin
drwxr-xr-x 2 joe users 80 2004-01-27 14:54 config
drwxr-xr-x 5 joe users 184 2004-01-27 14:53 docs
drwxr-xr-x 4 joe users 96 2004-01-27 14:55 domains
drwxr-xr-x 8 joe users 248 2004-01-27 14:55 imq
-rw-r--r-- 1 joe users 2086 2004-01-27 14:55 install.log
drwxr-xr-x 8 joe users 352 2004-01-27 14:52 jdk <--- I pathed it to this one
drwxr-xr-x 10 joe users 1448 2004-01-27 14:54 lib
drwxr-xr-x 5 joe users 128 2004-01-27 14:55 pointbase
drwxr-xr-x 17 joe users 632 2004-01-27 14:53 samples
-rwxr-xr-x 1 joe users 343984 2004-01-27 14:53 uninstall

So I pathed it to the jdk dir which is under my JAva 1.4x installation.

But when I try to start it up, Tomcat still complains that the JAVA_HOME variable is not correctly set:

JAVA_HOME=/SUNWappserver/jdk

So what could be the problem? Workaround?

robbe 01-27-2004 02:53 PM

Set JAVA_HOME to the top-level dir of the java installation, for example
/opt/j2sdk1.4.2
then prepend JAVA_HOME/bin to your PATH and everything should be fine.
Forget about setting links or something in /usr/local/bin and such a crap ...

doris 01-27-2004 03:20 PM

basically i agree with robbe. here's what i did to make tomcat work:

in ~/.bashrc, just add a line:

export JAVA_HOME=/usr/java/j2sdk1.4.1_02
## in your case, it's /SUNWappserver/jdk

then run 'source ~/.bashrc'. that's it.

the important thing is to export $JAVA_HOME, because tomcat will invoke java by "$JAVA_HOME"/bin/java.

drspore 01-27-2004 04:58 PM

You've installed the Enterprise edition 'eesdk' which is in addition to the normal SDK.. Just install the normal SDK and set JAVA_HOME accordingly.. You don't have the libraries necessary to run Tomcat.

drspore 01-27-2004 06:07 PM

You've installed the Enterprise edition (eesdk). Download and nstall the normal SDK and set JAVA HOME accordingly.


All times are GMT -5. The time now is 04:39 PM.