zoukankan      html  css  js  c++  java
  • 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



     
  • 相关阅读:
    v-date
    文字在图片上
    v-生命周期
    彭博接口分类
    如何指定vim 的查找是从上往下还是从下往上[z]
    查看linux版本
    git web找不到new project解决方法
    比特币运行原理[z]
    [Z]haproxy+keepalived高可用群集
    blockchain good article
  • 原文地址:https://www.cnblogs.com/jessezeng/p/5446630.html
Copyright © 2011-2022 走看看