Hello, i've recently got into modding and i have a issue: I have a single block mod (just for testing) and by testing in eclipse it works ok. But when i try to recompile it, it crashes: ---- Minecraft Crash Report ---- // Everything's going to plan. No, really, that was supposed to happen.
Time: 04-12-12 07:54 PM Description: Failed to start game
cpw.mods.fml.common.LoaderException: java.lang.ClassNotFoundException: MathirBlocks.MathirBlocksCore at cpw.mods.fml.common.LoadController.transition(LoadController.java:117) at cpw.mods.fml.common.Loader.loadMods(Loader.java:479) at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:151) at net.minecraft.client.Minecraft.a(Minecraft.java:424) at net.minecraft.client.Minecraft.run(Minecraft.java:756) at java.lang.Thread.run(Unknown Source) Caused by: java.lang.ClassNotFoundException: MathirBlocks.MathirBlocksCore at cpw.mods.fml.relauncher.RelaunchClassLoader.findClass(RelaunchClassLoader.java:141) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at cpw.mods.fml.common.ModClassLoader.loadClass(ModClassLoader.java:57) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Unknown Source) at cpw.mods.fml.common.FMLModContainer.constructMod(FMLModContainer.java:410) 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.EventHandler.handleEvent(EventHandler.java:69) at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45) at com.google.common.eventbus.EventBus.dispatch(EventBus.java:317) at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:300) at com.google.common.eventbus.EventBus.post(EventBus.java:268) at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:140) 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.EventHandler.handleEvent(EventHandler.java:69) at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45) at com.google.common.eventbus.EventBus.dispatch(EventBus.java:317) at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:300) at com.google.common.eventbus.EventBus.post(EventBus.java:268) at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:83) at cpw.mods.fml.common.Loader.loadMods(Loader.java:478) ... 4 more Caused by: java.lang.NullPointerException at org.objectweb.asm.ClassReader.<init>(Unknown Source) at net.minecraftforge.transformers.EventTransformer.transform(EventTransformer.java:29) at cpw.mods.fml.relauncher.RelaunchClassLoader.runTransformers(RelaunchClassLoader.java:178) at cpw.mods.fml.relauncher.RelaunchClassLoader.findClass(RelaunchClassLoader.java:133) ... 31 more
A detailed walkthrough of the error, its code path and all known details is as follows: ---------------------------------------------------------------------------------------
-- System Details -- Details: Minecraft Version: 1.4.5 Operating System: Windows 7 (x86) version 6.1 Java Version: 1.7.0_09, Oracle Corporation Java VM Version: Java HotSpot(TM) Client VM (mixed mode), Oracle Corporation Memory: 467207696 bytes (445 MB) / 518979584 bytes (494 MB) up to 1037959168 bytes (989 MB) JVM Flags: 2 total; -Xms512m -Xmx1024m AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used Suspicious classes: FML and Forge are installed IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0 FML: MCP v7.23 FML v4.5.2.459 Minecraft Forge 6.4.1.409 Optifine OptiFine_1.4.5_HD_U_D4 6 mods loaded, 6 mods active mcp [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed FML [Forge Mod Loader] (coremods) Unloaded->Constructed Forge [Minecraft Forge] (coremods) Unloaded->Constructed mod_CodeChickenCore [CodeChicken Core] (coremods) Unloaded->Constructed mod_NotEnoughItems [Not Enough Items] (coremods) Unloaded->Constructed MathirBlocks [Mathir Blocks] (MathirBlocks.zip) Unloaded->Errored LWJGL: 2.4.2 OpenGL: Mobile Intel(R) 4 Series Express Chipset Family GL version 2.1.0 - Build 8.15.10.2302, Intel Is Modded: Definitely; Client brand changed to 'forge,fml' Type: Client (map_client.txt) Texture Pack: Default Profiler Position: N/A (disabled) Vec3 Pool Size: ~~ERROR~~ NullPointerException: null My mod only have 2 classes: MathirBlocksCore.class package MathirBlocks;
public class SpiralBlock extends Block { public SpiralBlock(int par1, int par2, Material par3) { super(par1,par2,par3); this.blockIndexInTexture = par2; this.setCreativeTab(CreativeTabs.tabBlock); } public String getTextureFile() { return "/Texture/modterrain.png"; } } Please, i need help :C
I have a single block mod (just for testing) and by testing in eclipse it works ok. But when i try to recompile it, it crashes:
---- Minecraft Crash Report ----
// Everything's going to plan. No, really, that was supposed to happen.
Time: 04-12-12 07:54 PM
Description: Failed to start game
cpw.mods.fml.common.LoaderException: java.lang.ClassNotFoundException: MathirBlocks.MathirBlocksCore
at cpw.mods.fml.common.LoadController.transition(LoadController.java:117)
at cpw.mods.fml.common.Loader.loadMods(Loader.java:479)
at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:151)
at net.minecraft.client.Minecraft.a(Minecraft.java:424)
at net.minecraft.client.Minecraft.run(Minecraft.java:756)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.ClassNotFoundException: MathirBlocks.MathirBlocksCore
at cpw.mods.fml.relauncher.RelaunchClassLoader.findClass(RelaunchClassLoader.java:141)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at cpw.mods.fml.common.ModClassLoader.loadClass(ModClassLoader.java:57)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at cpw.mods.fml.common.FMLModContainer.constructMod(FMLModContainer.java:410)
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.EventHandler.handleEvent(EventHandler.java:69)
at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:317)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:300)
at com.google.common.eventbus.EventBus.post(EventBus.java:268)
at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:140)
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.EventHandler.handleEvent(EventHandler.java:69)
at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:317)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:300)
at com.google.common.eventbus.EventBus.post(EventBus.java:268)
at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:83)
at cpw.mods.fml.common.Loader.loadMods(Loader.java:478)
... 4 more
Caused by: java.lang.NullPointerException
at org.objectweb.asm.ClassReader.<init>(Unknown Source)
at net.minecraftforge.transformers.EventTransformer.transform(EventTransformer.java:29)
at cpw.mods.fml.relauncher.RelaunchClassLoader.runTransformers(RelaunchClassLoader.java:178)
at cpw.mods.fml.relauncher.RelaunchClassLoader.findClass(RelaunchClassLoader.java:133)
... 31 more
A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------
-- System Details --
Details:
Minecraft Version: 1.4.5
Operating System: Windows 7 (x86) version 6.1
Java Version: 1.7.0_09, Oracle Corporation
Java VM Version: Java HotSpot(TM) Client VM (mixed mode), Oracle Corporation
Memory: 467207696 bytes (445 MB) / 518979584 bytes (494 MB) up to 1037959168 bytes (989 MB)
JVM Flags: 2 total; -Xms512m -Xmx1024m
AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
Suspicious classes: FML and Forge are installed
IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
FML: MCP v7.23 FML v4.5.2.459 Minecraft Forge 6.4.1.409 Optifine OptiFine_1.4.5_HD_U_D4 6 mods loaded, 6 mods active
mcp [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed
FML [Forge Mod Loader] (coremods) Unloaded->Constructed
Forge [Minecraft Forge] (coremods) Unloaded->Constructed
mod_CodeChickenCore [CodeChicken Core] (coremods) Unloaded->Constructed
mod_NotEnoughItems [Not Enough Items] (coremods) Unloaded->Constructed
MathirBlocks [Mathir Blocks] (MathirBlocks.zip) Unloaded->Errored
LWJGL: 2.4.2
OpenGL: Mobile Intel(R) 4 Series Express Chipset Family GL version 2.1.0 - Build 8.15.10.2302, Intel
Is Modded: Definitely; Client brand changed to 'forge,fml'
Type: Client (map_client.txt)
Texture Pack: Default
Profiler Position: N/A (disabled)
Vec3 Pool Size: ~~ERROR~~ NullPointerException: null
My mod only have 2 classes:
MathirBlocksCore.class
package MathirBlocks;
import net.minecraft.src.Block;
import net.minecraft.src.BlockCloth;
import net.minecraft.src.Item;
import net.minecraft.src.ItemStack;
import net.minecraft.src.Material;
import net.minecraftforge.client.MinecraftForgeClient;
import cpw.mods.fml.common.Mod;
import cpw.mods.fml.common.Mod.Init;
import cpw.mods.fml.common.Mod.PreInit;
import cpw.mods.fml.common.event.FMLInitializationEvent;
import cpw.mods.fml.common.event.FMLPreInitializationEvent;
import cpw.mods.fml.common.network.NetworkMod;
import cpw.mods.fml.common.registry.GameRegistry;
import cpw.mods.fml.common.registry.LanguageRegistry;
@Mod(modid = "MathirBlocks", name = "Mathir Blocks", version = "Alpha 0.01_01")
@NetworkMod(clientSideRequired = true, serverSideRequired = false)
public class MathirBlocksCore
{
//BLOCKS
public static Block SpiralBlock;
@PreInit
public void initConfig(FMLPreInitializationEvent fpe)
{
}
@Init
public void load(FMLInitializationEvent fie)
{
SpiralBlock = (new SpiralBlock(3730,0,Material.rock)).setHardness(0.8F).setStepSound(Block.soundStoneFootstep).setBlockName("SpiralBlock").setRequiresSelfNotify();
registeringBlocks();
blockNames();
itemNames();
recipes();
smelting();
//MINECRAFT FORGE TEXTURE FUNCTIONS
MinecraftForgeClient.preloadTexture("/Texture/modterrain.png");
}
public void registeringBlocks()
{
//BLOCKS
GameRegistry.registerBlock(SpiralBlock);
}
public void blockNames()
{
//Block
}
public void itemNames()
{
LanguageRegistry.addName(SpiralBlock, "Spiral Block");
}
public void recipes()
{
GameRegistry.addRecipe(new ItemStack(SpiralBlock,1), new Object[] {
"XXX","XYX","XXX", 'Y', new ItemStack(Block.dirt), 'X', new ItemStack(Block.stone)
});
}
public void smelting()
{
}
}
and SpiralBlock.class
package MathirBlocks;
import net.minecraft.src.Block;
import net.minecraft.src.CreativeTabs;
import net.minecraft.src.Material;
public class SpiralBlock extends Block
{
public SpiralBlock(int par1, int par2, Material par3)
{
super(par1,par2,par3);
this.blockIndexInTexture = par2;
this.setCreativeTab(CreativeTabs.tabBlock);
}
public String getTextureFile()
{
return "/Texture/modterrain.png";
}
}
Please, i need help :C
I actually don't know how to use proxys. I'll look it up and tell you what happens.
Vec3 Pool Size: ~~ERROR~~ NullPointerException: null
You can't use a NULL for a vector. But, that error might be caused because of this error...
java.lang.ClassNotFoundException: MathirBlocks.MathirBlocksCore
Are you importing the class ?
PLEASE! Learn to use spoiler tags, especially when posting crash reports: [spoiler]YOUR TEXT HERE[ /spoiler]