Search code examples
javagrailsgroovyjava-home

Grails: JAVA_HOME is not defined correctly


I have tried to install Grails framework and command "grails" in terminal every time crashes. I am using Debian Squeeze and I set in /etc/profile and ~/.profile this:

export JAVA_HOME=/usr/lib/jvm/java-6-sun-1.6.0.22
export GRAILS_HOME="/home/snitch/grails"
export PATH=${PATH}:${GRAILS_HOME}/bin

What is wrong?


Solution

  • Solved.

    JAVA_HOME=/usr/lib/jvm/java-6-sun-1.6.0.22 
    export JAVA_HOME 
    GRAILS_HOME=/home/snitch/grails 
    export GRAILS_HOME 
    PATH=$PATH:$GRAILS_HOME/bin:$JAVA_HOME/bin 
    export PATH