Posted August 29, 201411 yr I have been developing my mod over the past few weeks for forge build 1180 for 1.7.10. In eclipse everything works perfectly but when I build the mod and load it with forge (build 1180) it crashes! This is the crash report: ---- Minecraft Crash Report ---- // This is a token for 1 free hug. Redeem at your nearest Mojangsta: [~~HUG~~] Time: 8/29/14 8:37 PM Description: There was a severe problem during mod loading that has caused the game to fail cpw.mods.fml.common.LoaderException: java.lang.NoClassDefFoundError: items/ItemEnergizedShardSpeed at cpw.mods.fml.common.LoadController.transition(LoadController.java:162) at cpw.mods.fml.common.Loader.preinitializeMods(Loader.java:515) at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:239) at net.minecraft.client.Minecraft.func_71384_a(Minecraft.java:480) at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:867) at net.minecraft.client.main.Main.main(SourceFile:148) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at net.minecraft.launchwrapper.Launch.launch(Launch.java:134) at net.minecraft.launchwrapper.Launch.main(Launch.java:28) Caused by: java.lang.NoClassDefFoundError: items/ItemEnergizedShardSpeed at main.RunicScrolls.preInit(RunicScrolls.java:394) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:513) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) at com.google.common.eventbus.EventBus.post(EventBus.java:275) at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:208) at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:187) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) at com.google.common.eventbus.EventBus.post(EventBus.java:275) at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:118) at cpw.mods.fml.common.Loader.preinitializeMods(Loader.java:513) ... 10 more Caused by: java.lang.ClassNotFoundException: items.ItemEnergizedShardSpeed at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:188) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) ... 38 more Caused by: java.lang.NullPointerException at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:180) ... 40 more A detailed walkthrough of the error, its code path and all known details is as follows: --------------------------------------------------------------------------------------- -- System Details -- Details: Minecraft Version: 1.7.10 Operating System: Windows 7 (amd64) version 6.1 Java Version: 1.8.0_05, Oracle Corporation Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation Memory: 101164352 bytes (96 MB) / 318242816 bytes (303 MB) up to 1908932608 bytes (1820 MB) JVM Flags: 2 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xmx2G AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0 FML: MCP v9.05 FML v7.10.18.1180 Minecraft Forge 10.13.0.1180 4 mods loaded, 4 mods active mcp{9.05} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized FML{7.10.18.1180} [Forge Mod Loader] (forge-1.7.10-10.13.0.1180.jar) Unloaded->Constructed->Pre-initialized Forge{10.13.0.1180} [Minecraft Forge] (forge-1.7.10-10.13.0.1180.jar) Unloaded->Constructed->Pre-initialized ilegendsrunicscrolls{v2.2} [iLegends Runic Scrolls] (modid-1.0.jar) Unloaded->Constructed->Errored At line 20 and 50 it says that it is caused by java.lang.NoClassDefFoundError: items/ItemEnergizedShardSpeed and java.lang.ClassNotFoundException: items.ItemEnergizedShardSpeed. Im not sure what this means but the classe ItemEnergizedShardSpeed is in the items package. Im not sure what the issue is. Thanks in advance
August 29, 201411 yr Hi Have you called the package directory Items instead of items by any chance? -TGG
August 30, 201411 yr Author No, I dont think thats the case. Everything referring to the package is spelled with a lower case. In the crash report it points towards line 394 in my main class, RunicScrolls.java. This is the item registry for the shard. itemEnergizedShardSpeed = new ItemEnergizedShardSpeed().setUnlocalizedName("itemEnergizedShardSpeed").setCreativeTab(scrollTab).setTextureName(modid + ":" + "itemEnergizedShardSpeed"); GameRegistry.registerItem(itemEnergizedShardSpeed, "itemEnergizedShardSpeed"); This is the full main class: http://pastebin.com/xmMnyzd1 This is also everything inside the class for ItemEnergizedShardSpeed; package items; import java.util.List; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.item.Item; import net.minecraft.item.ItemStack; public class ItemEnergizedShardSpeed extends Item { public void addInformation(ItemStack par1ItemStack, EntityPlayer par2EntityPlayer, List par3List, boolean par4) { par3List.add("Made in an Endite Reactor"); } } This is a download for this crashing version of my mod : http://www.fileswap.com/dl/X3nVhTLQA5/modid-1.0.jar.html I cant see anything wrong with it.
August 30, 201411 yr Author Ok, I fixed it. A lot of stuff was missing form the build folder and was named incorrectly. I fixed it by changing the names and directories.
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.