I referred to the Basic Modding Tutorial provided on the minecraft forge website. I downloaded the MDK file for Minecraft Forge 1.11.2 and extracted files from the archive.
Then, I made another folder named 'My mod' and copied files given below from the extracted files.
gradle (folder)
build.gradle
gradlew.bat
Thereafter, I copied cmd.exe to the 'My mod' folder. When I open the cmd and type 'gradlew setupDecompWorkspace', it says:
:decompileMc FAILEDecompileMc
It also says that process 'command 'C:\Program Files\Java\java_java\bin\java.exe'' finished with non-zero exit value 1 and I think this is because something related to RAM specification for gradle.
I tried solution given in the tutorial, i.e., editing the gradle.properties file and adding a line of code. But when I run the 'gradlew setupDecomWorkspace', it says
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
Could not reserve enough space for 2097152KB object heap
I searched a lot but didn't find any solution.
I am a newbie and don't know much so forgive me if I am doing any silly mistake.
Thanks in advance.