GGTS 3.6在我的Ubuntu上表现得非常奇怪。 我已经安装了GGTS,如果我从终端开始,一切都很好。 我还添加了GGTS的桌面快捷方式。如果我使用桌面快捷方式从Unity启动器启动,GGTS无法找到合适的Java。它给出了以下错误。
|Loading Grails 2.4.3
|Configuring classpath
.
|Environment set to development
.................................
|Packaging Grails application
....................................
|Running Grails application
Error |
Exception in thread "Thread-7"
Error |
java.io.IOException: Cannot run program "/lib/jvm/java-7-oracle/jre/bin/java/bin/java"
(in directory "/home/halley/Documents/workspace-ggts-3.6.1.RELEASE/Test"):
error=2, No such file or directory
对这种奇怪行为的任何帮助?
我的JDK安装在/usr/lib/jvm/java-7-oracle
我仍然想知道GGTS是如何选择它的
- > /lib/jvm/java-7-oracle/jre/bin/java/bin/java
echo $PATH
/home/halley/.gvm/vertx/current/bin:
/home/halley/.gvm/springboot/current/bin:
/home/halley/.gvm/lazybones/current/bin:
/home/halley/.gvm/jbake/current/bin:
/home/halley/.gvm/groovyserv/current/bin:
/home/halley/.gvm/groovy/current/bin:
/home/halley/.gvm/griffon/current/bin:
/home/halley/.gvm/grails/current/bin:
/home/halley/.gvm/gradle/current/bin:
/home/halley/.gvm/glide/current/bin:
/home/halley/.gvm/gaiden/current/bin:
/home/halley/.gvm/crash/current/bin:
/home/halley/bin:/usr/local/sbin:
/usr/local/bin:
/usr/sbin:
/usr/bin:
/sbin:
/bin:
/usr/games:
/usr/local/games:
/usr/lib/jvm/java-7-oracle/bin
echo $JAVA_HOME
/usr/lib/jvm/java-7-oracle