views:

125

answers:

2

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)

A: 

If message literally says "/path/to/tomcat/bin/catalina.sh", then the problem is that you have not configured IntelliJ to tell it where your Tomcat installation is.

If the message gives the real location of your Tomcat "catalina.sh" script, then this is a permissions problem. You need to change the ownership and/or permissions on your Tomcat installation so that your current user-id can run it. (Or maybe, if the permissions are set that way for security reasons, you should give up on launching Tomcat directly from IntelliJ.)

Stephen C
+1  A: 

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.

Andrzej Doyle