我已成功安装java
[ ~]$ echo $JAVA_HOME
/usr/local/java/jdk1.7.0_07/
[ ~]$ echo $PATH
/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/local/java/jdk1.7.0_07/bin
但是在启动我的应用程序时,我收到的错误如下:
Cannot find existing Java version from JAVA_HOME
请帮忙!
答案 0 :(得分:1)
您的JAVA_HOME错了:
将其设为/usr/local/java/jdk1.7.0_07/
答案 1 :(得分:-1)
不确定,但您是否尝试删除最后一个斜杠 /usr/local/java/jdk1.7.0_07