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

前端 未结 5 853
既然无缘
既然无缘 2020-12-22 20: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         


        
5条回答
  •  猫巷女王i
    2020-12-22 21:19

    Do this everytime you run IntelliJ Idea, and free yourself from all that chmod nonesense

    Linux users only(As I have found myself here):

    Just go to the terminal and do su and while you received the "great power with great responsibility", go to /usr/local/bin and there you have your idea file, it gives root privileges to your IntelliJ Idea to never face permission problems, if you couldn't find the idea file just hop on Tools -> Create Command-line launcher to create a new one or just to look where the file is.

    For running the idea file, just type idea in terminal while you are root user and hit enter.

    had this problem with tomcat, no matter how many times you do the chmod stuff, when you dont have enough privilege in your user bank, you will mess things up with it.

    Good luck.

提交回复
热议问题