linux下java.io.IOException: Cannot run program "/opt/jdk/jre/bin/java": error=13, Permission denied


linux下啟動jetty時報:

[root@mv01 jetty-distribution-9.2.14.v20151106]# java -jar start.jar 
java.io.IOException: Cannot run program "/opt/jdk/jre/bin/java": error=13, Permission denied
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1041)
at org.eclipse.jetty.start.Main.start(Main.java:787)
at org.eclipse.jetty.start.Main.main(Main.java:112)
Caused by: java.io.IOException: error=13, Permission denied
at java.lang.UNIXProcess.forkAndExec(Native Method)
at java.lang.UNIXProcess.<init>(UNIXProcess.java:135)
at java.lang.ProcessImpl.start(ProcessImpl.java:130)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1022)
... 2 more

Usage: java -jar start.jar [options] [properties] [configs]
java -jar start.jar --help # for more information
java.io.IOException: Cannot run program "/opt/jdk/jre/bin/java": error=13, Permission denied
Permission denied已經提示很清楚了,沒有權限,解決方法:

   執行命令: chmod 777 /opt/jdk/jre/bin/java



 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM