Grails Startup with IntelliJ IDEA

welcome-to-grailsI started a toy project just to give Grails a try and want to share the project setup, and other steps. I were really impressed by the demo applications: painless, easy startup and CRUD applications, but yes a bit too late but I were really busy at my new job, and also trying to get used to my new country, and of course I admit that I am a bit lazy too :D
After reading the Getting Started with Grails free booklet, and well prepared Grails Documentation I started playing with it :)

Well startup steps with IntelliJ IDEA:

My first HelloGrails application had the below error, after playing with the Grails version and trying an older version: grails-1.0.4, I realized that the Groovy was also necessary for JetGroovy plugin. I had already installed groovy but GROOVY_HOME environment setting was missing, but still I could not get the point: Why can’t I use Grails without Groovy @IntelliJ?

java.lang.ClassNotFoundException: org.codehaus.groovy.grails.cli.GrailsScriptRunner
at org.codehaus.groovy.tools.RootLoader.findClass(RootLoader.java:156)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at org.codehaus.groovy.tools.RootLoader.loadClass(RootLoader.java:128)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at org.codehaus.groovy.tools.GroovyStarter.rootLoader(GroovyStarter.java:98)
at org.codehaus.groovy.tools.GroovyStarter.main(GroovyStarter.java:130)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:90)
Process finished with exit code 1

Anyway, you can add two more steps for Grails startup for IntelliJ IDEA users:

My startup configuration:
grails-1.0.4
groovy-1.5.7
jdk1.6.0_07
IntelliJ IDEA 7.0.4

Reblog this post [with Zemanta]

Did you enjoy this post? Why not leave a comment below and continue the conversation, or subscribe to my feed and get articles like this delivered automatically to your feed reader.

Comments

No comments yet.

Leave a comment

(required)

(required)