Jump to content

My mod won't start 1.16.1, (Exception in thread "main" java.lang.NoClassDefFoundError, Caused by: java.lang.ClassNotFoundException)


James_zhang

Recommended Posts

Hi I'm currently working on a mod that adds variants of blocks into MC. 

My version is 1.16.1 and I'm using Intellij to write my code. Here's the exception:

 

Exception in thread "main" java.lang.NoClassDefFoundError: cpw/mods/modlauncher/Launcher
    at net.minecraftforge.userdev.LaunchTesting.main(LaunchTesting.java:105)
Caused by: java.lang.ClassNotFoundException: cpw.mods.modlauncher.Launcher
    at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:418)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:352)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
    ... 1 more

 

It only appears in my debug log when I debug-run the runClient configuration, as I cannot find anything in my crash reports folder. There isn't any additional information on it.

It's my first mod, so am I doing something wrong?

I've already added about 50 blocks, they all work in game, and I've never encountered a crash like this one before. How should I fix it?

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.