Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 01-27-2004, 05:36 AM   #1
Registered: Mar 2003
Location: Macondo
Distribution: Mandrake 9.1, 10.1, SuSE 8.1 pro, 10.1, Red Hat 8.0/9.0
Posts: 380

Rep: Reputation: 30
Tomcat 5 installation...problems!

Hello All,

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

File name:


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:


So what could be the problem? Workaround?

Last edited by vous; 01-27-2004 at 08:12 AM.
Old 01-27-2004, 02:53 PM   #2
LQ Newbie
Registered: Jan 2004
Distribution: gentoo
Posts: 4

Rep: Reputation: 0
Set JAVA_HOME to the top-level dir of the java installation, for example
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 ...
Old 01-27-2004, 03:20 PM   #3
Registered: May 2001
Location: New York, USA
Distribution: RH 7.3, 8.0
Posts: 64

Rep: Reputation: 15
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.
Old 01-27-2004, 04:58 PM   #4
LQ Newbie
Registered: Mar 2003
Location: Cork, M41Ireland
Distribution: Red Hat 9.0 Darwin 7(OS X)
Posts: 5

Rep: Reputation: 0
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.
Old 01-27-2004, 06:07 PM   #5
LQ Newbie
Registered: Mar 2003
Location: Cork, M41Ireland
Distribution: Red Hat 9.0 Darwin 7(OS X)
Posts: 5

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


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
Tomcat installation zakidad Linux - Newbie 3 07-12-2005 02:15 AM
Tomcat Installation Randvegeta Linux - Software 0 04-26-2005 05:34 AM
tomcat installation on redhat jkmartha Linux - General 1 04-11-2005 09:52 AM
Tomcat installation problems tryphonnette Fedora 0 11-17-2004 09:55 AM
Tomcat & JetSpeed Portal Installation problems vous Linux - Software 0 01-27-2004 04:08 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:07 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