Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

bash error : Cannot find /Library/...../setclasspath.sh, but it's there

I'm trying to set up tomcat server and I am using the instructions from a website that has instructed me to

      # Execute the Tomcat startup script
      ./startup.sh 

but when i enter the ./startup.sh command i get an error

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

but the setclasspath.sh is there (see screenshot below):

enter image description here

What am i doing wrong????


now i cannot cd to Home (see screenshot below):

enter image description here

here is the path info: enter image description here

like image 323
codenamejupiterx Avatar asked Jun 14 '12 03:06

codenamejupiterx


5 Answers

I had same problem on my mountain lion machine and I use this command :

$ unset CATALINA_HOME

and after that it solved my problem.This command will unset the environmental variable CATALINA_HOME.

like image 191
ali Avatar answered Nov 16 '22 03:11

ali


just run: $ unset CATALINA_HOME in Terminal, and it works again.

like image 24
Macilias Avatar answered Nov 16 '22 01:11

Macilias


Please RESET the CATALINA_HOME to point to correct path. That should resolved the problem. for example; currently it might be at "/usr/share/tomcat6/" but you need to verify & point till the correct directory like "/usr/share/tomcat6/apache-tomcat-6.0.37/"

like image 5
satyajeet mahapatra Avatar answered Nov 16 '22 01:11

satyajeet mahapatra


Its because of permission, you can run this using root $ sudo pathtotomcat/bin/./startup.sh

like image 4
Mohammed Irfan Tirupattur Avatar answered Nov 16 '22 03:11

Mohammed Irfan Tirupattur


I too had similar issue and I am able to resolve it by simply changing the file permission of tomcat folder . Make it read and Write for everyone. And sh startup.sh command would work fine with Tomcat/7.0.34

I got this solution from here

To make all scripts runnable:

sudo chmod +x /Library/Tomcat/bin/*.sh

I hope it solves your issue too.

like image 1
Ankit Avatar answered Nov 16 '22 01:11

Ankit