Alqueraf
Alqueraf

Reputation: 1398

IntelliJ IDEA Grails 3.0 Error

I am trying to create a new Grails project with IntelliJ IDEA using the new grails-3.0 M1 SDK but when running create-app I am getting the following error:

Error: Could not find or load main class org.codehaus.groovy.grails.cli.support.GrailsStarter

With previous grail versions works fine (I got the environment variables configured correctly)

Any workarounds about it?

Thanks

Upvotes: 7

Views: 9479

Answers (3)

Thriller
Thriller

Reputation: 505

Make sure there are no other java paths on your system, sometimes it may happen in windows that before your actual path you have something like "C:\ProgramData\Oracle\Java\javapath" in your system path. if you have this just delete it and run a new cmd and test again.

Upvotes: 0

olikaf
olikaf

Reputation: 601

Grails 3 uses gradle. So create your app with grails create-app, and you can open the project as a gradle one. You loose the grails view, but it works.

Upvotes: 3

tim_yates
tim_yates

Reputation: 171194

Are you trying to use the grails integration in idea? Grails 3 is so different, I doubt that will work. Just create-app from the command line, and import the project into idea from the build.gradle file that creates.

Until it's updated to work with grails 3, you'll need to use the command line or the grails shell to issue commands

Don't forget, you're trying a milestone release (not even a beta, or release candidate), so you're living on the cutting edge, and tooling might take a bit to catch up with you ;-)

Upvotes: 12

Related Questions