Jump to content

Recommended Posts

Posted

Hello,

I'm trying to create a mod using this tutorial:

https://codakid.com/guide-to-minecraft-modding-with-java/

I went through these steps successfully:

  1. Installed Eclipse.
  2. Installed JDK.
  3. Download and extracted the Forge source (1.12).
  4. Ran the gradlew commands successfully:
    .\gradlew setupDecompWorkspace
    .\gradlew eclipse
  5. Created my classes.

When I tried to click the Run Client button (the green play button), Eclipse did nothing. When I selected Run as Java Application > Launch, I got this error:

[19:54:52] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraft.launchwrapper.VanillaTweaker
[19:54:52] [main/INFO] [LaunchWrapper]: Using primary tweak class name net.minecraft.launchwrapper.VanillaTweaker
[19:54:52] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraft.launchwrapper.VanillaTweaker
[19:54:52] [main/ERROR] [LaunchWrapper]: Unable to launch
java.lang.NoSuchMethodException: net.minecraft.client.Minecraft.main([Ljava.lang.String;)
    at java.lang.Class.getMethod(Unknown Source) ~[?:1.8.0_221]
    at net.minecraft.launchwrapper.Launch.launch(Launch.java:132) [launchwrapper-1.12.jar:?]
    at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.12.jar:?]

 

I would appreciate any advice on how to fix this!

Posted

gradlew genEclipseRuns -> Package Explorer -> F5

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/27/2019 at 6:33 PM, DaemonUmbra said:

gradlew genEclipseRuns -> Package Explorer -> F5

Expand  

Thanks for the quick reply, I've just tried running .\gradlew genEclipseRuns but got this error:

 

PS C:\minecraft-workspace\forge-1.12.2-14.23.5.2768-mdk> .\gradlew genEclipseRuns                                       To honour the JVM settings for this build a new JVM will be forked. Please consider using the daemon: https://docs.gradle.org/2.14/userguide/gradle_daemon.html.
This mapping 'snapshot_20171003' was designed for MC 1.12! Use at your own peril.
#################################################
         ForgeGradle 2.3-SNAPSHOT-6084129e
  https://github.com/MinecraftForge/ForgeGradle
#################################################
                 Powered by MCP
            http://modcoderpack.com
     by: Searge, ProfMobius, R4wk, ZeuX
     Fesh0r, IngisKahn, bspkrs, LexManos
#################################################

FAILURE: Build failed with an exception.

* What went wrong:
Task 'genEclipseRuns' not found in root project 'forge-1.12.2-14.23.5.2768-mdk'.

* Try:
Run gradlew tasks to get a list of available tasks. Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Posted

Oh apparently that's handled by the eclipse task in that version

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

Did you do the other steps after?

  On 9/27/2019 at 6:33 PM, DaemonUmbra said:

Package Explorer -> F5

Expand  

 

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

Yes, I also refreshed.

If I use a newer version of Forge (1.13, 1.14), is there a better chance that Run will work from Eclipse after doing the standard configuration steps?

BTW, I managed to run Minecraft with my draft mod using .\gradlew runClient. What's the advantage of running it directly from the Eclipse GUI?

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.