Jump to content

Recommended Posts

Posted

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.

Screenshot (44).png

Posted

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.

Posted

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.

Posted
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?

Posted (edited)
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.

Screenshot (45).png

Edited by CJWilk
Posted (edited)

Actually, that problem is caused becaused you have too much ram going into the command.

Try setting ram settings lower.

Edited 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.

Posted

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.

Posted (edited)

did you try putting like  -Xmx250M -Xms250M or  -Xmx1G -Xms1G   ?

Newer versions of jdk will not help you.

Edited 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.

Posted

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.

Posted

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.