2017-03-14 6 views
0

"konnte nicht genug Platz für Objektheap behalten" Wenn Befehl ausgeführt wird in meinem GRAILS 3.2.7 Anwendungsordner:Grails 3 Fehler

grailsw generate-all com.mycmp.myapp.* 

ich Fehler:

Error occurred during initialization of VM Could not reserve enough space for object heap Error: Could not create the Java Virtual Machine.

ich auf windows bin 10 x64 mit Java 1.8.0 x64. Mit Blick auf das Netz sollten die JVM-Optionen für Gradle hinzugefügt werden, aber keine Ahnung, wo dies getan werden sollte. in gradle.properties Versuchte

org.gradle.jvmargs=-Xmx3072m -XX:MaxPermSize=524m 

Aber kein Glück überhaupt hinzuzufügen. Irgendein Hinweis?

Dies ist die vollständige Fehlermeldung:

| Resolving Dependencies. Please wait... | Error Error initializing classpath: Unable to start the daemon process. This problem might be caused by incorrect configuration of the daemon. For example, an unrecognized jvm option is used. Please refer to the user guide chapter on the daemon at https://docs.gradle.org/3.4.1/userguide/gradle_daemon.html Please read the following process output to find out more: ----------------------- Error occurred during initialization of VM Could not reserve enough space for object heap Error: Could not create the Java Virtual Machine. Error: A fatal exception has occurred. Program will exit. (Use --stacktrace to see the full trace)

Antwort

0

es stellte mir heraus, dass mein JAVA_HOME auf einem anderen Pfad hinwies als die Java-Ordner in meinem PAT-Umgebungsvariable. CHICK an einem cmd-Fenster mit

ECHO %JAVA_HOME% 
ECHO %PATH%