Jump to content

Recommended Posts

Posted

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:

 

  Reveal hidden contents

 

 

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

Posted

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.

 

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.