IntelliJ says: "Cannot start program" /path/to/tomcat/bin/catalina.sh "error = 13 resolved

In intelliJ ulimate, when I launch the spring mvc voice bone application, I get an error message:

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

How to fix it? (I'm on Mac)

+53
java spring-mvc intellij-idea tomcat
Jun 22 '10 at 10:00
source share
5 answers

In short, from the console:

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

This assumes that you removed the Tomcat path in your post and verified that it really exists on your system before posting here. Depending on the existing file permissions, you may need to issue the above command as a user with fairly elevated privileges.

+152
Jun 22 '10 at 12:05
source share

When I run into this problem, I will check:
enter image description here

Right click on catalina.sh -> Properties -> Permissions.

+5
Oct 03 '15 at 12:00
source share

Solution: you set permission for the Tomcat directory:

 chmod -R 777 apache-tomcat-directory 
+4
Nov 11 '16 at 0:35
source share

I meet this error today. This is because I accept the wrong Tomcat6 package. On Max OS, I have to download tar.gz , but I download zip . Make sure you get the correct Tomcat package.

+3
Feb 02 '15 at 3:28
source share

If the message literally says "/path/to/tomcat/bin/catalina.sh", the problem is that you did not configure IntelliJ to tell where your Tomcat is installed.

If the message gives the actual location of your Tomcat "catalina.sh" script, then this is a permission issue. You need to change the ownership and / or permissions to install Tomcat so that your current user ID can start it. (Or maybe if permissions are set this way for security reasons, you should stop running Tomcat directly from IntelliJ.)

+1
Jun 22 '10 at
source share



All Articles