Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IntelliJ says 'cannot run program '/path/to/tomcat/bin/catalina.sh' error=13 permission denied

In intelliJ ulimate, running a bare bone spring mvc application I get the error:

'cannot run program '/path/to/tomcat/bin/catalina.sh' error=13 permission denied 

How to I fix this? (i'm on a mac)

like image 747
Blankman Avatar asked Jun 22 '10 10:06

Blankman


2 Answers

In short, from a console:

chmod a+x /path/to/tomcat/bin/catalina.sh

This assumes that you 've elided the Tomcat path in your post, and checked that it really does exist on your system before posting here. Depending on the existing permissions of the file, you may need to issue the above command as a user with sufficiently elevated privileges.

like image 81
Andrzej Doyle Avatar answered Oct 03 '22 02:10

Andrzej Doyle


Solution: You set permission for Tomcat directory:

chmod -R 777 apache-tomcat-directory 
like image 35
Do Nhu Vy Avatar answered Oct 03 '22 02:10

Do Nhu Vy