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

8 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
  3. What could be the permanent solution for this kind of issue

    ReplyDelete
  4. Nice, i read it, detailed instructions, but I could not start the bin, I just didn't know how to open bin file https://wikiext.com/bin until I had downloaded the universal viewer for such files. It actually helped and it works correctly. Now I'm going to move on to the next stage got from your tips...

    ReplyDelete
  5. i have a problem after typing ./startup.sh command after tomcat installation in my linux as mentioned below.
    please help me
    Cannot find /opt/tomcat//bin/setclasspath.sh

    ReplyDelete