Reputation: 1398
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
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
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
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