Grails - java.lang.NoClassDefFoundError: _PluginDependencies_groovy $ _run_closure1

I just configure Grails on my computer and follow the link http://grails.org/doc/latest/guide/gettingStarted.html#creatingAnApplication

The command below gives me an error. Please help.

C:\Users\jjayarman>grails create-app helloworld --stacktrace | Environment set to development.... | Error Error executing script CreateApp: _PluginDependencies_groovy$_run_closure1 (NOTE: Stack trace has been filtered. Use --verbose to see entire t race.) java.lang.NoClassDefFoundError: _PluginDependencies_groovy$_run_closure1 at _PluginDependencies_groovy.run(_PluginDependencies_groovy:43) at _PluginDependencies_groovy$run.call(Unknown Source) at _GrailsArgParsing_groovy$run.call(Unknown Source) at org.codehaus.gant.IncludeTargets.leftShift(IncludeTargets.groovy:59) at org.codehaus.gant.IncludeTargets$leftShift.call(Unknown Source) at _GrailsInit_groovy.run(_GrailsInit_groovy:35) at _GrailsInit_groovy$run.call(Unknown Source) at _GrailsCompile_groovy$run.call(Unknown Source) at org.codehaus.gant.IncludeTargets.leftShift(IncludeTargets.groovy:59) at org.codehaus.gant.IncludeTargets$leftShift.call(Unknown Source) at _GrailsCompile_groovy.run(_GrailsCompile_groovy:28) at _GrailsCompile_groovy$run.call(Unknown Source) at _GrailsPackage_groovy$run.call(Unknown Source) at org.codehaus.gant.IncludeTargets.leftShift(IncludeTargets.groovy:59) at org.codehaus.gant.IncludeTargets$leftShift.call(Unknown Source) at _GrailsPackage_groovy.run(_GrailsPackage_groovy:28) at _GrailsPackage_groovy$run.call(Unknown Source) at _GrailsSettings_groovy$run.call(Unknown Source) at org.codehaus.gant.IncludeTargets.leftShift(IncludeTargets.groovy:59) at org.codehaus.gant.IncludeTargets$leftShift.call(Unknown Source) at _GrailsPlugins_groovy.run(_GrailsPlugins_groovy:33) at _GrailsPlugins_groovy$run.call(Unknown Source) at _GrailsCreateProject_groovy$run.call(Unknown Source) at org.codehaus.gant.IncludeTargets.leftShift(IncludeTargets.groovy:59) at org.codehaus.gant.IncludeTargets$leftShift.call(Unknown Source) at _GrailsCreateProject_groovy.run(_GrailsCreateProject_groovy:28) at _GrailsCreateProject_groovy$run.call(Unknown Source) at org.codehaus.gant.IncludeTargets.leftShift(IncludeTargets.groovy:59) at org.codehaus.gant.IncludeTargets$leftShift.call(Unknown Source) at CreateApp_.run(CreateApp_.groovy:25) at CreateApp_$run.call(Unknown Source) at gant.Gant.prepareTargets(Gant.groovy:607) Caused by: java.lang.ClassNotFoundException: _PluginDependencies_groovy$_run_closure1 ... 32 more | Error Error executing script CreateApp: _PluginDependencies_groovy$_run_closure1 
+4
source share
1 answer

I know this is quite old for Linux, but this question was the first result when googling "java.lang.NoClassDefFoundError: _GrailsInit_groovy $ _run_closure1_closure6".

On Linux, I fixed this with source ~/.bashrc This is the file in which you declare JAVA_HOME and GRAILS_HOME.

You may need to restart Windows for these variables to take effect.

See installing grails on Linux

+2
source

Source: https://habr.com/ru/post/1496168/


All Articles