美文网首页
Mac osx下配置Intellij IDEA+Tomcat 出

Mac osx下配置Intellij IDEA+Tomcat 出

作者: 雪地伤孤 | 来源:发表于2017-02-13 19:32 被阅读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

项目顺利执行

相关文章

网友评论

      本文标题:Mac osx下配置Intellij IDEA+Tomcat 出

      本文链接:https://www.haomeiwen.com/subject/vqetwttx.html