FAILURE: Build failed with an exception.

Status
Works as designed
Issue description

I was exporting my mod to a .jar file when mcreator gives me this error:

Executing gradle command: clean build
Microsoft Windows [Version 10.0.16299.371]
(c) 2017 Microsoft Corporation. Todos os direitos reservados.
C:\Pylo>cd forge
C:\Pylo\forge>SET "JAVA_HOME=C:\Pylo\jdk\"
C:\Pylo\forge>SET JAVA_EXE=%JAVA_HOME%\bin\java.exe
C:\Pylo\forge>SET PATH=%JAVA_HOME%\bin\;%PATH%
C:\Pylo\forge>SET "GRADLE_USER_HOME=C:\Users\fernandes\.mcreator\gradle"
C:\Pylo\forge>gradlew -Dorg.gradle.jvmargs="-Xms1024m -Xmx2048m" clean build 
FAILURE: Build failed with an exception.
* What went wrong:
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/2.14/userguide/gradle_daemon.html
Please read the following process output to find out more:
-----------------------
Error occurred during initialization of VM
Initial heap size set to a larger value than the maximum heap size
Picked up _JAVA_OPTIONS: -Xmx512M
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
Picked up _JAVA_OPTIONS: -Xmx512M
C:\Pylo\forge>
Task completed with return code 0 in 2230 milliseconds

 

I don't know how to solve it.

Someone please help me.

Issue comments

I am exactly with the same problem but I can not solve it since I downloaded the normal 64bit version, I have 8GB RAM. *

Sorry for sending the comment twice, I had a problem when I sent it ...