Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Tomcat Slackware Install Problems

Status
Not open for further replies.
Apr 16, 2003
117
US
I am trying to install on slackware 10.2
I have apache 1.33 jdk 1.5

when i run the following command this is what i get... but it looks like java_home is ok

root@hostname:/# su - tomcat -c /usr/local/tomcat/bin/startup.sh
Neither the JAVA_HOME nor the JRE_HOME environment variable is defined
At least one of these environment variable is needed to run this program

root@hostname:/# echo $JAVA_HOME
/opt/jdk1.5.0_05/
 
Make sure that JAVA_HOME is set in the home .bash_profile or .profile script ... and always login using the "-" switch. I see you are doing a "su to root and run this command" - but this does not mean your actual user's profile is picked up ! Plus anyway ... why do you need to run tomcat as root (unless binding to port 80) ?

--------------------------------------------------
Free Java/J2EE Database Connection Pooling Software
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top