Error: the main class org.codehaus.groovy.grails.cli.support.GrailsStarter was not found or loaded

1

I have installed the new version of Grails 3.1.6 and I am using Eclipse Mars 2 Release (4.5.2). When I try to create a new Grails project I get the following error message:

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: no se ha encontrado o cargado la clase principal org.codehaus.groovy.grails.cli.support.GrailsStarter

Can anyone tell me what I'm doing wrong? Thank you very much

    
asked by eloweyn 05.05.2016 в 11:52
source

2 answers

0

In the end I followed the steps of this web page

I created a project grails using the command line and imported it into Eclipse as a Gradle project. It is not the same as with the previous version of Grails, but it works.

    
answered by 10.05.2016 / 09:04
source
0

Are you trying to create the project from Eclipse? Grails 3.x is quite different from 2.x and the IDEs do not support well the new versions of grails (neither Intelij, nor GGTS either)

I would say that you would try to create the project using the command line by running grails create-app .

Another thing that would validate is that effectively the command line is using the desired grails version (in this case 3.1.6). For handling grails versions by command line I recommend the following tool link .

After installed it allows you to switch between versions of grails in a very practical way, something like:

$ sdk use grails 2.4.4

To use version 2.4.4 (exemplifying) and then if I want to change and use another version simply

$ sdk use grails 3.1.6

I hope it serves the answer, greetings

    
answered by 10.05.2016 в 01:53