Jump to content

Recommended Posts

Posted (edited)

I have forge 1.14.4 and I have successfully set up my work space / project using gradle. I am able to use ./gradlew build to build mods which are placed in the libs folder, so everything definitely works. However I am not currently able to run the code from within Eclipse. I get "Error : Could not find or load main class GradleStart", from the console...

 

Main Class : GradleStart

Arguments –Guy=<Guy> –qwerty!=<qwerty!>

 

 

Edited by MineModder2000
Posted

Did you run genEclipseRuns?

Actually that may have been moved into the eclipse task

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 should also mention that Eclipse doesn't listen for filesystem changes, you have to refresh the project(F5 or right click in the file hierarchy) for it to detect the runconfigs that ForgeGradle generates

  • Thanks 1

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
  On 9/24/2019 at 2:36 AM, DaemonUmbra said:

I should also mention that Eclipse doesn't listen for filesystem changes, you have to refresh the project(F5 or right click in the file hierarchy) for it to detect the runconfigs that ForgeGradle generates

Expand  

I am familiar with this. The genEclipseRuns does work, but it only builds the data and server runs, no client run is generated... When I try the manual approach using "GradleStart" as the main class and with the username and password as parameters it just doesn't launch. 

Posted

GradleStart no longer exists and you need to configure more than that to get Forge to load mods in dev.

Please provide your build.gradle

  • Thanks 1

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 mean please provide the build.gradle that controls the mod's configuration and build process

  • Thanks 1

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
  On 9/25/2019 at 3:28 AM, DaemonUmbra said:

I mean please provide the build.gradle that controls the mod's configuration and build process

Expand  

Oh right, I forgot about this guy.

 

  Reveal hidden contents

 

Posted

I see no reason for that to not generate a client run config.

Run eclipse and genEclipseRuns, then click into Package Explorer and press F5

  • Thanks 1

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

Show a screenshot of your package explorer?

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

You have all that with a default build.gradle?

Are there no errors when you run gradlew eclipse genEclipseRuns?

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 have had this exact problem when first trying to load Minecraft through Eclipse. I found I had to restart by re-downloading forge (MDK version), but save any mod code through text files in a folder as a recommendation. Run the gradle cmd and exit it when finished. Then use "cd " followed by the directory to your forge folder, and continuing in the order of:

"gradlew clean"

"gradlew genEclipseRuns"

"gradlew Eclipse"

Run Minecraft in Eclipse before continuing to re-add any code back to ensure it isn't any code that is preventing Minecraft from running. I found sometimes going outside the command order could result in failures such as the one you are currently experiencing. Yes it was a pain cause I on the other hand didn't save all my code in text files... This is for the latest recommended version of forge in 1.14.4, I am unsure if this is the same in prior versions of the game. 

  • Thanks 1
Posted
  On 9/25/2019 at 10:57 AM, A-Game said:

I have had this exact problem when first trying to load Minecraft through Eclipse. I found I had to restart by re-downloading forge (MDK version), but save any mod code through text files in a folder as a recommendation. Run the gradle cmd and exit it when finished. Then use "cd " followed by the directory to your forge folder, and continuing in the order of:

"gradlew clean"

"gradlew genEclipseRuns"

"gradlew Eclipse"

Run Minecraft in Eclipse before continuing to re-add any code back to ensure it isn't any code that is preventing Minecraft from running. I found sometimes going outside the command order could result in failures such as the one you are currently experiencing. Yes it was a pain cause I on the other hand didn't save all my code in text files... This is for the latest recommended version of forge in 1.14.4, I am unsure if this is the same in prior versions of the game. 

Expand  

I love you, this worked. I've tried the clean command before, but not all 3 of these in this order. I already had updated my forge so I didn't redo that. But now I can finally debug and test quickly instead of having to use the launcher ?

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.