Java 1.6版
Grails版本2.0.0
当我干净利落地执行grails时,我得到
Error executing script Clean: org.codehaus.gant.GantBuilder (Use --stacktrace to see the full trace)
C:\projects\botServices>grails --stacktrace clean
| Configuring classpath
| Error Error executing script Clean: org.codehaus.gant.GantBuilder (NOTE: Stack trace has been filtered. Use --verbose to see entire trace.)
java.lang.NoClassDefFoundError: org.codehaus.gant.GantBuilder
at org.codehaus.gant.GantBinding.class$(GantBinding.groovy)
at org.codehaus.gant.GantBinding.$get$$class$org$codehaus$gant$GantBuilder(GantBinding.groovy)
at org.codehaus.gant.GantBinding.<init>(GantBinding.groovy:41)
| Error Error executing script Clean: org.codehaus.gant.GantBuilder我以前从未遇到过这个问题。真奇怪。
感谢您的帮助
发布于 2012-11-12 20:26:23
我的Mac(Leopard)也有类似的问题。这是因为JAVA_HOME没有指向JDK1.6,它可以通过几种方式来解决
时都反映Java_Home,则仅适用于该特定的 ~/.profile
希望这能有所帮助
https://stackoverflow.com/questions/10520837
复制相似问题