Mac osx下配置Intellij IDEA+Tomcat 出

2017-02-13  本文已影响670人  雪地伤孤

IntellijIDEA运行java项目时报以下错误:

2017/2/12
19:15   Unregistered VCS root detected
            The directory /Users/scott/toolproject/java-workspace/tongtong is under Git, but is not registered in the Settings.
            Add root  Configure  Ignore

23:38   Compilation completed with 1 error and 8 warnings in 15s 646ms

23:38   Compilation completed with 1 error and 8 warnings in 5s 58ms

23:40   Compilation completed successfully with 29 warnings in 8s 977ms

23:40   Compilation completed successfully in 12s 575ms

23:40   Error running tongtong: Cannot run program "/usr/local/java-tool/apache-tomcat-8.5.11/bin/catalina.sh" (in directory "/usr/local/java-tool/apache-tomcat-8.5.11/bin"): error=13, Permission denied
error=13, Permission denied

主要问题是权限不足

解决方法:

在终端中,进入tomcat下的bin目录,执行chmod 777 *.sh

Paste_Image.png

项目顺利执行

上一篇 下一篇

猜你喜欢

热点阅读