Jump to content

Importing Forge Libraries


Forward

Recommended Posts

Hello Community,

 

I have a problem with importing the Forge-Libraries into my Eclipse Project. I did all the stuff with gradlew, but what I want is a forge.jar File which I can import into my Eclipse project, similiar to teh Bukkit or Spigot API. The only file which looks like a forge.jar Library is in my /build/tmp/decomileMC folder, but when I import this jar into Eclipse, it shows all packages, but without their classes. Though after a decompile of the same jar-file, jd-gui shows the classes. It seems that, Eclipse has issues importing thic specific library.

 

I'm thankful for every help you give me!

 

Forward

Link to comment
Share on other sites

If you run

gradlew eclipse

, ForgeGradle should automatically generate an Eclipse project with Forge and its dependencies as libraries. You don't need to import anything manually.

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.

Link to comment
Share on other sites

The way you should be doing it is download and extract Forge to location you want your workspace, open a console window in the folder and first run command: gradlew setupDecompWorkspace then run command: gradlew eclipse.

 

Then in Eclipse, you should import the project (right click on project hierarchy, choose Import, then choose Existing Project).

 

That should come up with example mod project that includes all the Forge libraries.

Check out my tutorials here: http://jabelarminecraft.blogspot.com/

Link to comment
Share on other sites

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.