Jump to content

cpw.mods.fml.common.LoaderException: java.lang.ClassNotFoundException


Recommended Posts

Posted

 

  Reveal hidden contents

 

 

This is the crash-report.

I have tried a lot of things but sadly they didnt work. What i do is i copied the files of the mod from my 1.6.2 src folder to my 1.6.4 src folder. I fixed all mistakes (they were about the textures and names) after that i "recompiled" and "reobfuscated". I even tried with "reobfuscate_srg". On eclipse everything works but minecraft doesnt want to load.

 

An other thing is that if my mod is in a .zip file minecraft doesnt read it but if i put just a folder (in "mods" folder) with everything for my mod, minecraft tries to load and crashes.

 

Here is the ForgeModLoader-client-0.log file

 

  Reveal hidden contents

 

Posted

You haven't correctly set up your @ModID annotation.

 

Probably.

 

I can't tell.

 

You haven't shown us any code.

 

But Forge is trying to inject your main class and can't find it.

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Posted

Well my @ModID annotation is the same as the @Instance meaning.

@Mod(modid = "ExpandedRailsMod", name = "Expanded Rails Mod", version = "1.22")

@Instance("ExpandedRailsMod")

 

And the class file is here ("folder name" which is "ExpandedRailsModv122---164")\rails\mod\ERMBase.class

I renamed the folder to ("expanded") but it didn't help.

In the code the package is called ("expanded.rails.mod") and in that is the ERMBase.class

 

What part of the code do you need?

Posted
  On 10/7/2013 at 5:36 PM, BlazeAxtrius said:

And the class file is here ("folder name" which is "ExpandedRailsModv122---164")\rails\mod\ERMBase.class

I renamed the folder to ("expanded") but it didn't help.

In the code the package is called ("expanded.rails.mod") and in that is the ERMBase.class

 

This might be the problem.  Can I see a screenshot of your zip file's folder structure?

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Posted

You're supposed to make a zip file.  I haven't ever seen it done like that.

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

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.