I have IDEA 7.0.4 and JetGroovy5461 plugin installed on my Ubuntu 7.10
I created JAVA_HOME and GRAILS_HOME and appended bin of GRAILS_HOME to the PATH env var (updating .bashrc file).
When I tried to create Grails application in IntelliJ, I got this error:
grails: JAVA_HOME is not defined correctly; can not execute: java
What is wrong?