Hello. I'm trying to setup my Eclipse/Forge environment for modding Minecraft 1.11.2. Whenever I try to run the command "gradlew setupDecompWorkspace" in the command prompt, I get the following error:
Can anybody help me figure out what my problem is and how to fix it? Thanks
Click to reveal
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/ ... aemon.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* Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
Can anybody help me figure out what my problem is and how to fix it? Thanks
Create an account or sign in to comment.
9
1
Try starting your JVM with "-cp <working directory>;<JDK utils JAR>".
1
Where do I put that? In the gradle.properties txt file?
1
No, I mean when you start the JVM. You're missing the class
from wherever your classpath is (currently C:\McModdingNew2).
Where did you install your JDK to?
com.sun.tools.javac.Main
from wherever your classpath is (currently C:\McModdingNew2).
Where did you install your JDK to?
1
I recently fixed the problem, and can now run Eclipse with Minecraft just fine now. Thank you
But, I don't suppose you would know how to fix an error with block names not working? lol
But, I don't suppose you would know how to fix an error with block names not working? lol
1
I fixed that problem, but now I'm getting a new error:
I have tried pointing the %JAVA_HOME% variable to both the JDK file inside of Program Files\Java as well as pointing it to where I have my modding file located, which is C:\McModdingNew2. Inside of that file, I have tried downloading the JDK to that file, so that file now includes the following folders:
bin (from the JDK)
eclipse
forge
lib
As well as a bunch of other readme.txt files that came with the JDK download. How do I fix the issue of the com.sun.tools.javac.Main not being the classpath?
Click to reveal
* What went wrong:
Execution failed for task ':recompileMc'.
> Unable to find a javac compiler;
com.sun.tools.javac.Main is not on the classpath.
Perhaps JAVA_HOME does not point to the JDK.
It is currently set to "C:\McModdingNew2"
Execution failed for task ':recompileMc'.
> Unable to find a javac compiler;
com.sun.tools.javac.Main is not on the classpath.
Perhaps JAVA_HOME does not point to the JDK.
It is currently set to "C:\McModdingNew2"
I have tried pointing the %JAVA_HOME% variable to both the JDK file inside of Program Files\Java as well as pointing it to where I have my modding file located, which is C:\McModdingNew2. Inside of that file, I have tried downloading the JDK to that file, so that file now includes the following folders:
bin (from the JDK)
eclipse
forge
lib
As well as a bunch of other readme.txt files that came with the JDK download. How do I fix the issue of the com.sun.tools.javac.Main not being the classpath?
1
Anybody know how to fix it?
1
what version of java are you using? make sure you have the latest version of jdk for minecraft 1.11. if you have problems with switching versions or downloading java then ask away
1
I'm using Java 8. I read from somewhere that my error is that I'm running out of memory or something for the JVM. How would I allocate more memory to the JVM?
1
Anybody? Please?