-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Paul,
Paul Pearce wrote: > I recently installed Tomcat 5 following these excellent instructions using > the exact same versions that are referenced in the instructions: > > http://www.meritonlinesystems.com/docs/apache_tomcat_redhat.html > > When I run the install command I get: FYI this is not an "install" command. It's a "startup" scripe. > [EMAIL PROTECTED] [/usr/local/jakarta-tomcat/bin]# ./startup.sh > > The JAVA_HOME environment variable is not defined correctly This environment > variable is needed to run this program > > NB: JAVA_HOME should point to a JDK not a JRE Okay, so JAVA_HOME doesn't point to the right place. No problem. > Set the JAVA_HOME environment variable, by modifying /etc/profile so it > includes the following: > > JAVA_HOME="/usr/java/j2sdk1.4.2" > export JAVA_HOME Sounds good. > exit > su - I'm not sure if "su -" counts as a login shell (and might skip /etc/profile). You might also want to: # source /etc/profile > However, when I check the > > [EMAIL PROTECTED] [~]# echo $JAVA_HOME > > /usr/local/jdk Is this what you get when you completely logout and then ssh back into the server? If JAVA_HOME is set to /usr/local/jdk, then perhaps your java installation has modified /etc/profile or another environmental setup script to set this value. If you modified /etc/profile and set this value /earlier/ in the file, then the "bad" value will clobber yours and it will not look like your EXPORT is working properly. Try looking for other places where JAVA_HOME is set in /etc. Try /etc/profile, /etc/bash_*, /etc/csh*, /etc/login, etc. You could also try your own login scripts (~/.bash_*, ~/.login, etc.). > it appears that "JAVA_HOME" still points to the wrong directory. You could always try this: $ export JAVA_HOME=/usr/java/j2sdk1.4.2 $ /usr/local/jakarta-tomcat/bin/startup.sh This would at least prove to you that, when JAVA_HOME is correctly set, that Tomcat starts up properly. After you have verified that, you can move on to try to set JAVA_HOME properly all the time. Why do you have both Java 1.4 and JDK 1.5 installed at the same time? - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFF6cyD9CaO5/Lv0PARAj+BAJ9uWp7OfSiL2tPRe7oItWBPIafCqQCdGkWQ A04+rpj4amviDvv7cXN8BBE= =w5xD -----END PGP SIGNATURE----- --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]