Jump to content

Recommended Posts

Posted

Hi All,

I've been working on a mod, and have encountered an aggravating problem.  My mod, written using eclipse 4.2, the 7.x branch of MCP on a Mac OSX 10.6.8 (with the default java SDK and python implementations) refuses to compile properly.  While the mod runs perfectly inside eclipse, compiling, reobfuscating it and loading into a .minecraft folder with the latest version of forge properly installed (I checked by booting minecraft with a different mod loaded -- it worked fine) causes minecraft to crash, throwing a ClassNotFoundException related to the @Mod class -- Even when I remove literally every other class. 

 

The console error log looks like this:

 

  Reveal hidden contents

 

 

The minecraft error log looks like this:

 

  Reveal hidden contents

 

 

And GasSystems_v1 looks like this:

 

  Reveal hidden contents

 

What am I doing wrong?

 

Incidentally, I (vaguely) remember a similar bug -- back in the 1.2.5 era, I would get a similar error thrown when the folder containing my mod had a different name from the mod_ class.

Posted

Its straight forward, you're not packaging your mod correctly.

Post a full list of everything in your mod exactly how its structured, then compare that to what java is looking for, you'll find a issue.

 

I do Forge for free, however the servers to run it arn't free, so anything is appreciated.
Consider supporting the team on Patreon

Posted
  On 9/24/2012 at 4:00 AM, LexManos said:

Its straight forward, you're not packaging your mod correctly.

Post a full list of everything in your mod exactly how its structured, then compare that to what java is looking for, you'll find a issue.

 

In MCP, the GasSystems package is located inside the common folder, containing the @Mod file and the GasSystems.common package which contains the TestItem file. . .

 

I'm still quite a bit inexperienced with java -- how would I found out what package java is looking for?  The error log only lists the package declared in the @Mod file, not where it's looking for that package.

Guest
This topic is now closed to further replies.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.