That's it - I just downloaded the latest versions of Grails (2.1.0) and JDK (1.7.0_07) on my computer with a 64-bit version of Win7 and configured my machine as follows:
1.) Added environment variables for Java and Grails
2.) Update PATH depending on the situation 3.) Make sure that everything is installed correctly by doing java -versionandgrails -version
The command java -versionworks and shows the following:
java version "1.7.0_07"
Java(TM) SE Runtime Environment (build 1.7.0_07-b10)
Java HotSpot(TM) 64-Bit Server VM (build 23.3-b01, mixed mode)
but the command grails -versiongives the following error:
Exception: java.lang.RuntimeException thrown from the UncaughtExceptionHandler in thread "main"
I tried debugging, completely removing all Java, and then reinstalling, but the same error. I verified that I installed the 64-bit version of Java.
- ( [] Stackoverflow ).
, ? , Grails ? .
-Tom
1 :
:
GRAILS_HOME = C:\grails\grails-2.1.0
JAVA_HOME = C:\Program Files\Java\jdk1.7.0_07
Path = [lots of other stuff];%JAVA_HOME%\bin;%GRAILS_HOME%\bin;
2 Java ( 1.7.0_07) @crudolf