eclipse - Grails 3.2.9和Eclipse Luna 4.4.2

标签 eclipse grails

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

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

试图从New Grails project制作Eclipse Luna 4.4.2,但发生此错误
 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:\Windows\System32\appmgmt\MACH
 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不支持Grails3。您可以尝试升级到Mars或更高版本(最好是后来的版本),或者像其他人建议的那样升级另一个IDE,但是不幸的是,Luna于2014年发布,而且过时了目前支持Grails 3。

关于eclipse - Grails 3.2.9和Eclipse Luna 4.4.2,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45345826/

相关文章:

eclipse - 将Eclipse的本地历史记录与Time Machine(Mac)集成

grails - Sonar-runner 没有为 Groovy/Grails 项目导入 coberturacoverage.xml 报告

hibernate - 如何使测试中的一对一关系失败?

java - Appium Android 测试用例,它是如何工作的?

java - 为什么安装失败后无法删除该Eclipse插件?

android - 在android studio中制作带有大写包名的apk

Java 自定义光标在新计算机上不起作用

Grails 覆盖插件服务静态方法

java - 具有元素数量限制的 Groovy .collect

mongodb - 尝试使用 mongodb 插件在 grails 中创建一个 mongodb 集合