Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

OS X - Terminal resets after typing 'grails' command

In my .bash_profile I have the following lines

export GRAILS_HOME=/usr/share/java/grails;
export PATH=$PATH:$GRAILS_HOME/bin;

$GRAILS_HOME is a symbolic link to grails 2.3.11 in the same directory, and all the files are intact and where they are supposed to be.

However, when I type grails into the terminal, nothing happens. Well, something happens...for a brief moment the title of the terminal window changes from bin -- bash -- to bin -- tset --. After that, the terminal window clears and resets itself.

I'm really confused as to why this is happening. I've set up grails before and never had this issue. Can anyone point me in the right direction?

like image 214
root.alpha.001 Avatar asked Aug 12 '14 02:08

root.alpha.001


1 Answers

This was due to my JAVA_HOME variable not being set up correctly. As soon as I added export JAVA_HOME=/Library/Java/Home Grails started working.

like image 122
root.alpha.001 Avatar answered Oct 21 '22 08:10

root.alpha.001