title: Grails: JAVA_HOME is not defined correctly
body: <p>I have tried to install Grails framework and command "grails" in terminal every time crashes. I am using Debian Squeeze and I set in <code>/etc/profile</code> and <code>~/.profile this</code>: </p>
  
  <pre><code>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
  </code></pre>
  
  <p>What is wrong?</p>