Jump to content

Recommended Posts

Posted

So earlier today I had the thought of trying out forge modding (creating my own forge mod) everything was going well until I had to run the command "gradlew genEclipseRuns" I run it and it comes up with -

FAILURE: Build failed with an exception.

* What went wrong:
Unable to get mutable Windows environment variable map

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org


Of course this is my first ever attempt at creating a mod and I'm currently only trying to understand the basics of it. I'm also expecting to run into bugs. Anyway, I downloaded forge 1.16.3 and the mdk and the javas I hold are -
jdk-14.0.2
jdk-16.0.1
jre1.8.0_291
 

I suspect it to be an issue with my javas or forge but I'm not quite sure.

All of my mdk files and folders are located at "C:\Users\User\AppData\Roaming\.minecraft\mods\Gods-and-War\gods-and-war" The was a file that ive had in there for a good while so I put all the mdk files in there.

Any support will be appreciated!!

Also I have add a picture showing my downloaded files for this! 

2021-08-05 (2).png

Posted

Move your mod workspace out of .minecraft, there's no reason to put it there and it might complicate file permissions

This is my Forum Signature, I am currently attempting to transform it into a small guide for fixing easier issues using spoiler blocks to keep things tidy.

 

As the most common issue I feel I should put this outside the main bulk:

The only official source for Forge is https://files.minecraftforge.net, and the only site I trust for getting mods is CurseForge.

If you use any site other than these, please take a look at the StopModReposts project and install their browser extension, I would also advise running a virus scan.

 

For players asking for assistance with Forge please expand the spoiler below and read the appropriate section(s) in its/their entirety.

  Reveal hidden contents

 

Posted

I've moved it to a new folder and I've tried running it again but it's repeating the same thing it said earlier.

I've attached a photo so you can also see exactly what the command prompt says.

2021-08-05 (3).png

Posted

It looks like Gradle is trying to use Java 16, this isn't going to work. Set JAVA_HOME to the JDK8 root and try again

This is my Forum Signature, I am currently attempting to transform it into a small guide for fixing easier issues using spoiler blocks to keep things tidy.

 

As the most common issue I feel I should put this outside the main bulk:

The only official source for Forge is https://files.minecraftforge.net, and the only site I trust for getting mods is CurseForge.

If you use any site other than these, please take a look at the StopModReposts project and install their browser extension, I would also advise running a virus scan.

 

For players asking for assistance with Forge please expand the spoiler below and read the appropriate section(s) in its/their entirety.

  Reveal hidden contents

 

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.