The GGTS(Groovy Grails Tools Suite) is picking the incorrect value of JAVA_HOME. When I check the value in terminal it shows java-6, but GGTS is picking java-7.
sashwat@sashwat-desktop:~$ echo ${JAVA_HOME}
/usr/lib/jvm/java-6-openjdk-amd64
I am getting the following error in GGTS
Error executing script TestApp: java.io.IOException:
Cannot run program "/usr/lib/jvm/java-7-openjdk-amd64/bin/java" (in directory "/home/sashwat/grails/gTunes"):
java.io.IOException: error=2, No such file or directory (Use --stacktrace to see the full trace)
I am able to run the app from command line, it is only giving error when I try to run it from GGTS. Can someone help me in this regard?
There is a strange behavior. If I re-install the GGTS, everything would work fine but after restart it would start showing the above error.