Java exception while trying to start Grails

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

+5
6

: , ​​ ., .

, Grails C:\Users\Administrator.grails C:\Users\Administrator.groovy. , ( , Java), , -, "" , , JDK.

. .

+1

Grails 2.1.0 Grails 2.2.1 Windows 7.

C:\User\%USERNAME%\.grails C:\User\%USERNAME%\.groovy, Grails 2.1.0.

, Grails JAR .grails .groovy %GRAILS_HOME%.

, - ".grails" ".groovy" Grails!

+1

Grails 2.4.0 2.2.4 Windows 8.1 Pro. , , grails cmd. Appdata\Local\Temp. , . , Everyone Appdata\Local\Temp, . , Windows Apps reset .

+1

. Grails-2.2.4 java-1.7.25 Windows 7 x86. . ~/.groovy ~/.grails, java.lang.RuntimeException, UncaughtExceptionHandler.

Finally, the problem was resolved by removing ~ / .m2.

BTW, "set DEBUG = 1" before running "grails" at the command line will show the environment and options for starting Java.exe.

0
source

I had a similar problem, but on Ubuntu 12.04. I solved this by deleting the $ GROOVY_HOME environment variable. If you also have the $ GROOVY_HOME variable, try deleting it.

0
source

Try deleting the file .grails_historylocated in your directory %Home%. This worked for me on Windows 8.1

0
source

All Articles