Trying to start tomcat at startup, cannot do it because I have manually write $ JAVA_HOME=/usr/local/jdk; export JAVA_HOME in a console window everytime I restart the machine.
Linked tomcat.sh to rc.d and rc3.d, and renamed it as S96tomcat, but at startup, it cannot "see" java interpreter.
How can I tell bash where to look for /usr/java/jdk. I did it in /etc/profile, /root/.bash_profile, but cannot see the path until I write JAVA_HOME everytime.
January 5th, 2003, 11:14 PM
I'm having the same problem myself - set JAVA_HOME and CATALINA_HOME in the same files and Tomcat doesn't want to recognize them when I run the bin/startup.sh script. Can anyone help with this simple problem? I'm stumped!
January 7th, 2003, 02:57 AM
put this into ur /home/user/.bashrc or /home/user/.profile
to test if it is available
java is used by users but normally not by root
-on windows i dont know-
January 7th, 2003, 07:13 AM
That appeared to be the problem - I wasn't exporting the variables in my profile! Thanks a bunch.