2017-03-14 4 views
0

「オブジェクトヒープに十分なスペースを確保できませんでした」:Grailsの3エラーが

grailsw generate-all com.mycmp.myapp.* 

私が取得エラー:私は窓の午前

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

Java 1.8.0 x64の10 x64 netを見て、gradleのJVMオプションを追加する必要がありますが、どこでこれを行うべきか分かりません。 は

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

しかし、まったく運を追加するgradle.propertiesにしようとしました。何かヒント?

| 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)

答えて

0

それは私のJAVA_HOMEが私のPAT環境変数にJavaのフォルダよりも別のパスを指していたことが判明:

これは、完全なエラーメッセージです。 cmdウィンドウでのチェック

ECHO %JAVA_HOME% 
ECHO %PATH%