IntelliJ says 'cannot run program '/path/t

2019-01-30 04:39发布

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)

4条回答
淡お忘
2楼-- · 2019-01-30 05:16

When I face with this problem I check:
enter image description here

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

查看更多
Fickle 薄情
3楼-- · 2019-01-30 05:18

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.

查看更多
仙女界的扛把子
4楼-- · 2019-01-30 05:25

Solution: You set permission for Tomcat directory:

chmod -R 777 apache-tomcat-directory
查看更多
家丑人穷心不美
5楼-- · 2019-01-30 05:25

I meet this error today. It's because I take a wrong package of Tomcat6. In Max OS, I should download the tar.gz , but I download the zip. Make sure you get the right Tomcat package.

查看更多
登录 后发表回答