Jump to content

Recommended Posts

Posted

I have both JDK 8 and JDK 12. When I try to run Minecraft from Eclipse, ForgeGradle doesn't see my JDK 8, thus giving me:

FAILURE: Build failed with an exception.

* Where:
Build file 'C:\Users\jeffg\Desktop\JGDev-Eclipse\Mods\Fluxed Machinery\build.gradle' line: 11

* What went wrong:
A problem occurred evaluating root project 'Fluxed Machinery'.
> Failed to apply plugin [id 'net.minecraftforge.gradle']
   > Found java version 12.0.1. Minimum required is 1.8.0_101. Versions 11.0.0 and newer are not supported yet.

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

------------------------STUFF BELOW PROBABLY DOESN'T MATTER-----------------------------------
* Get more help at https://help.gradle.org

Deprecated Gradle features were used in this build, making it incompatible with Gradle 5.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/4.9/userguide/command_line_interface.html#sec:command_line_warnings

How do I get ForgeGradle to see java 8?

Posted

Gradle doesn’t search for any available JDK, you have to specifically tell it which JDK to use by either setting your “JAVA_HOME” environment variable or by setting “.org.gradle.java.home” in a gradle.properties file

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.