Jump to content

Recommended Posts

Posted (edited)

EDIT: SOLVED by fixing my Java JDK installation. Gradle was trying to use an old Java version that didn't exist, so I downloaded the newest Java 8 JDK, and added the line 'org.gradle.java.home=C:/Program Files/AdoptOpenJDK/jdk-8.0.242.08-hotspot' to my gradle.properties file.

 

 

Hi everyone,

 

In trying to setup Forge for 1.15.2 (Eclipse) I keep running into the same problem.

 

This is what I've done:

  • Downloaded the Forge MDK (latest version, 1.15.2 - 31.1.27 - though I also tried with the Recommended version)
  • Extracted all the files into my development folder
  • Downloaded Gradle for Eclipse, and imported the development folder into Eclipse as a Gradle project
  • Run gradlew eclipse in the development folder

 

The problem is that when I open Eclipse, none of the Minecraft or Forge classes are on the build path, and I can't view any of the game source code in package explorer.

 

The issue seems to be that it can't download the source code. This is the error log that I get when I run gradlew --refresh-dependencies:

 

forge-forum-error-log.png.63d9c01faefa671a76be622127d9f6ff.png

 

I also get errors in Eclipse showing that the project is missing the Forge source as a required library.

 

Here is my build.gradle file attached (I haven't edited it at all yet)

  Reveal hidden contents

 

I've tried recreating the entire setup multiple times from scratch, using both the latest and recommended versions, and each time I get this error.

 

I've read the instructions at https://mcforge.readthedocs.io/en/latest/gettingstarted/ but it doesn't seem to cover how you get the project up and running. I've looked around other threads on this forum but to no avail.

 

What am I doing wrong? Any help would be very highly appreciated.

Edited by Fluorescent Flamingo
Posted

I still use the commandline to setup my projects for eclipse, i.e.

  Quote

gradlew eclipse

gradlew genEclipseRuns

Expand  

Then import into eclipse as an Existing Project as opposed to a gradle project.

I couldn't tell you the reason why, but I have to set the project up *twice* before the sources are available to me when I import existing project into eclipse.

 

Trying to run the gradle tasks within eclipse hasn't really worked for me.

Posted (edited)

I just copied the source code, imported the gradle project, and ran tasks for all IDEs. I have IntellijIDEA, Eclipse, VScode working with vanilla source.
IMPORTANT! You need to wait until IDE downloads and prepares all the files.

gradle tasks --all

By the way, I recommend specifying "org.gradle.java.home = ? / Program Files / Java / jdk1.8.0_241" in gradle.properties
image.png.277204e26df9660ffc42ca814853642a.png

Edited by Torq

If I helped you, don't forget like. I'm using a translator, sorry.

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.