Posted February 12, 20178 yr Okay, so I am using Minecraft Forge MDK 1.10.2-12.18.3.2221, and I went to setup my main mod folder to start working on a mod. I dragged all of the files into my main folder, then opened a command window in the folder, and typed gradlew setupDecompWorkspace. The setup would get to 73% recompileMC and from there the build would fail. It says that it is unable to find a javac compiler. Could someone help? I have linked a picture of the command prompt window.
February 12, 20178 yr The error message tells you exactly what's wrong: The JAVA_HOME environment variable currently points to the JRE, but it needs to point to the JDK instead. Please don't PM me to ask for help. Asking your question in a public thread preserves it for people who are having the same problem in the future.
February 12, 20178 yr Author EXTRA NOTE: I have setup the Path Variable correctly, and I have modded 1.7.10. I tried making a JAVA_HOME variable like oracle suggested, but that didn't work.
February 12, 20178 yr Author 16 minutes ago, Choonster said: The error message tells you exactly what's wrong: The JAVA_HOME environment variable currently points to the JRE, but it needs to point to the JDK instead. I set that up by creating the Path variable, and creating a new variable called JAVA_HOME, and set those to only the JDK. It still won't work. Any idea why?
February 12, 20178 yr Author 58 minutes ago, diesieben07 said: Did you reboot? I rebooted my computer, and reran the gradlew setupDecompWorkspace and got this error. This is also after changing the JAVA_HOME variable to the jdk. Please help. Edited February 12, 20178 yr by CJWilk
February 13, 20178 yr Author The RAM shouldn't be a problem, according to Task Manager, nothing is using my Memory.
February 13, 20178 yr Actually, that problem is caused becaused you have too much ram going into the command. Try setting ram settings lower. Edited February 13, 20178 yr by Leomelonseeds Apparently I'm addicted to these forums and can't help but read all the posts. So if I somehow help you, please click the "Like This" button, it helps.
February 13, 20178 yr Not sure, try putting -Xmx500M -Xms500M after your command. Apparently I'm addicted to these forums and can't help but read all the posts. So if I somehow help you, please click the "Like This" button, it helps.
February 13, 20178 yr put less or more for the numbers Apparently I'm addicted to these forums and can't help but read all the posts. So if I somehow help you, please click the "Like This" button, it helps.
February 13, 20178 yr Author That didn't seem to work. I found I don't have the newest version of JDK, I have JDK 8 101, and the newest is JDK 8 121. I trying to see if that will help.
February 13, 20178 yr did you try putting like -Xmx250M -Xms250M or -Xmx1G -Xms1G ? Newer versions of jdk will not help you. Edited February 13, 20178 yr by Leomelonseeds Apparently I'm addicted to these forums and can't help but read all the posts. So if I somehow help you, please click the "Like This" button, it helps.
February 13, 20178 yr Actually, try even smaller numbers, like 30M. Apparently I'm addicted to these forums and can't help but read all the posts. So if I somehow help you, please click the "Like This" button, it helps.
February 13, 20178 yr Exactly how much ram u have? Apparently I'm addicted to these forums and can't help but read all the posts. So if I somehow help you, please click the "Like This" button, it helps.
February 13, 20178 yr try even less. 3 minutes ago, Leomelonseeds said: Exactly how much ram u have? Apparently I'm addicted to these forums and can't help but read all the posts. So if I somehow help you, please click the "Like This" button, it helps.
February 14, 20178 yr ohhhhhhh, try setting it to 2G, see if that works. BTW are all the values generating the EXACT same error? Apparently I'm addicted to these forums and can't help but read all the posts. So if I somehow help you, please click the "Like This" button, it helps.
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.