2017-07-27 4 views
0

私はちょうどここGrails 3.2.9をインストールgrails -versionGrailsの3.2.9とEclipseルナ4.4.2

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:\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> 

これらのエラーの原因は何ですか?

+0

私はあなたのための提案があります。あなたがEclipseを使用したい場合は、GGTSを使用してください。公式のgrailsツールはIDEに適しています。また、IntelliJを使用することもできます。 – Sayem

+0

@Sayem Tried GGTSの同じ例外もこの[link]が見つかりました(https://stackoverflow.com/questions/37574925/unable-to-run-grails-application-using-groovy-grails-tools-suite-3-6- 4) – Sherif

+0

GGTSはgrails 3をサポートしていません。代わりにIntelliJを使用してください。 – Sayem

答えて

0

Eclipse LunaはGrails 3をサポートしていないということです。Mars以降にアップグレードすることができます(後でお勧めします)。あるいは別のIDEが示唆しているように別のIDEが示唆しましたが、残念なことにLunaは2014年にリリースされました。この時点でGrails 3をサポートするには古すぎます。

+0

これはちょっと古いですが、参考になるかもしれません:https://tedvinke.wordpress.com/2015/10/17/eclipse-mars-grails-3- 1-with-gradle-groovy-and-gsp-support/ – Daniel

+0

良いリンクと 'eclipse oxgen 4.7'の手順に従いましたが、このエラーが発生しました'コマンドが例外で終了しました:org.grails.ide.eclipse.longrunning.client .GrailsProcessDiedException:Grailsプロセスが終了しました(部分出力の詳細を参照) Grailsプロセスが終了しました ------ System.out:----------- ------ System.err :----------- エラー:メインクラスを見つけられず、ロードできませんでした。org.codehaus.groovy.grails.cli.support.GrailsS​​tarter ' – Sherif

+0

元の投稿を更新しました。 – Sherif