Grails 3.2.9 and Eclipse Luna 4.4.2



我刚刚安装了Grails 3.2.9这里是grails -version的输出

Grails Version: 3.2.9
Groovy Version: 2.4.10
JVM Version: 1.8.0_131

尝试从Eclipse Luna 4.4.2进行New Grails project,但发生了此错误

Command terminated with an exception: 
org.grails.ide.eclipse.longrunning.client.GrailsProcessDiedException: Grails 
process died (see details for partial output)
Grails process died
------System.out:-----------
------System.err:-----------
Error: Could not find or load main class 
org.codehaus.groovy.grails.cli.support.GrailsStarter

当我尝试从命令行运行create-app时出现以下错误:

grails> create-app testme --stacktrace
| Warning Unrecognized flag: stacktrace.
| Error Command [create-app] error: null (NOTE: Stack trace has been filtered. Use --verbose to see entire trace.)
java.lang.reflect.UndeclaredThrowableException
at com.sun.proxy.$Proxy4.handleCommand(Unknown Source)
at org.grails.cli.GrailsCli.handleCommand(GrailsCli.groovy:378)
at org.grails.cli.GrailsCli$_handleCommandWithCancellationSupport_closur
e6.doCall(GrailsCli.groovy:469)
at org.grails.cli.GrailsCli$_handleCommandWithCancellationSupport_closur
e6.call(GrailsCli.groovy)
Caused by: java.nio.file.AccessDeniedException: C:WindowsSystem32appmgmtMACH
INE
at org.grails.cli.profile.commands.CreateAppCommand.findAllFilesByName(C
reateAppCommand.groovy:197)
at org.grails.cli.profile.commands.CreateAppCommand.handle(CreateAppComm
and.groovy:248)
at org.grails.cli.profile.commands.CreateAppCommand.handle(CreateAppComm
and.groovy:341)
at org.grails.cli.GrailsCli.executeCommandWithArgumentValidation(GrailsC

li.groovy:287)
at org.grails.cli.GrailsCli$_execute_closure3.doCall(GrailsCli.groovy:25
0)
... 4 more
| Error Command [create-app] error: null
grails>

任何导致这些错误的想法。

导致此错误的原因是 Eclipse Luna 不支持 Grails 3。 您可以尝试升级到Mars或更高版本(最好稍后(,或者像其他人建议的那样升级到另一个IDE,但不幸的是Luna是在2014年发布的,并且太旧了,目前不支持Grails 3。

最新更新