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