Monday, January 30, 2012

Cannot find /Library/Tomcat/Home/bin/setclasspath.sh

When starting Tomcat on Lion:
$ /Library/Tomcat/bin/startup.sh 
And you encountered this error:
Cannot find /Library/Tomcat/Home/bin/setclasspath.sh This file is needed to run this program
just unset the CATALINA_HOME variable:
$ unset CATALINA_HOME

Then run this again:
/Library/Tomcat/bin/startup.sh 

Then visit http://127.0.0.1:8080

Troubleshooting idea got from this: http://www.malisphoto.com/tips/tomcatonosx.html


Another approach is to use sudo:

sudo /Library/Tomcat/bin/startup.sh 

Then visit http://127.0.0.1:8080

4 comments:

  1. The first option works perfectly for me. Thanks for the quick solution!

    ReplyDelete
  2. I am installing apache tomcat8 and java8 on the top of centos VMWARE image. Tomcat is giving setclasspath.sh Can not found error. i already did "unset CATALINA_HOME ". Then tomcat started but not running in the browser. please resolve this. And Is there any other solution for this setclasspath.sh can not found?

    Thank you in advance.

    ReplyDelete