In your .bash_profile, or /etc/profile, add a line like this JAVA_HOME=/usr/java/j2sdk1.4.1_02/bin export JAVA_HOME That worked for me. Jeremy West On Thu, 2003-05-08 at 18:51, Doug wrote: > Hi folks. > > I've installed Tomcat and also the java sdk (apache says jdk, but the > sun site only shows sdk), when i run the ./startup.sh in tomcat it comes > back with JAVA_HOME environment is not defined. I've put > PATH="$PATH:/usr/java/j2sdk1.4.1_02/bin:." > export PATH in both /etc/profile and the roots .bashrc files > > but still getting the same errors. anyone have any ideas what i'm > missing or did wrong? > > tia > > > >