Jump to content

[SOLVED]ClassNotFoundException, NullPointerException


Lord_BawsaQ

Recommended Posts

Works on Eclipse, but when I install it, it doesn't work.

 

---- Minecraft Crash Report ----

// Why is it breaking :(

 

Time: 23/11/13 10:22 PM

Description: There was a severe problem during mod loading that has caused the game to fail

 

cpw.mods.fml.common.LoaderException: java.lang.ClassNotFoundException: tutorial.basic.Basic

at cpw.mods.fml.common.LoadController.transition(LoadController.java:156)

at cpw.mods.fml.common.Loader.loadMods(Loader.java:521)

at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:183)

at net.minecraft.client.Minecraft.func_71384_a(Minecraft.java:473)

at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:808)

at net.minecraft.client.main.Main.main(SourceFile:101)

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:131)

at net.minecraft.launchwrapper.Launch.main(Launch.java:27)

Caused by: java.lang.ClassNotFoundException: tutorial.basic.Basic

at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:186)

at java.lang.ClassLoader.loadClass(Unknown Source)

at java.lang.ClassLoader.loadClass(Unknown Source)

at cpw.mods.fml.common.ModClassLoader.loadClass(ModClassLoader.java:61)

at java.lang.Class.forName0(Native Method)

at java.lang.Class.forName(Unknown Source)

at cpw.mods.fml.common.FMLModContainer.constructMod(FMLModContainer.java:462)

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:74)

at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)

at com.google.common.eventbus.EventBus.dispatch(EventBus.java:313)

at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)

at com.google.common.eventbus.EventBus.post(EventBus.java:267)

at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:201)

at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:181)

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:74)

at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)

at com.google.common.eventbus.EventBus.dispatch(EventBus.java:313)

at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)

at com.google.common.eventbus.EventBus.post(EventBus.java:267)

at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:112)

at cpw.mods.fml.common.Loader.loadMods(Loader.java:511)

... 10 more

Caused by: java.lang.NullPointerException

at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:178)

... 38 more

 

 

A detailed walkthrough of the error, its code path and all known details is as follows:

---------------------------------------------------------------------------------------

 

-- System Details --

Details:

Minecraft Version: 1.6.4

Operating System: Windows 8 (amd64) version 6.2

Java Version: 1.7.0_45, Oracle Corporation

Java VM Version: Java HotSpot 64-Bit Server VM (mixed mode), Oracle Corporation

Memory: 137498040 bytes (131 MB) / 331350016 bytes (316 MB) up to 954728448 bytes (910 MB)

JVM Flags: 2 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xmx1G

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 v8.11 FML v6.4.45.952 Minecraft Forge 9.11.1.952 Optifine OptiFine_1.6.4_HD_U_C6 7 mods loaded, 7 mods active

mcp{8.09} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed

FML{6.4.45.952} [Forge Mod Loader] (minecraftforge-9.11.1.952.jar) Unloaded->Constructed

Forge{9.11.1.952} [Minecraft Forge] (minecraftforge-9.11.1.952.jar) Unloaded->Constructed

Backpack{1.18.17} [backpack] (backpack-1.18.17-1.6.2.zip) Unloaded->Constructed

tutorial{0.0.1} [Tutorial] (basic.zip) Unloaded->Errored

ComputerCraft{1.57} [ComputerCraft] (ComputerCraft1.57.zip) Unloaded->Constructed

CCTurtle{1.57} [ComputerCraft Turtles] (ComputerCraft1.57.zip) Unloaded->Constructed

 

-----------Folder Setup:

 

basic.zip/basic/client/ClientProxy.class

basic.zip/basic/Basic.class

basic.zip/basic/CommonProxy.class

basic.zip/mcmod.info

 

-----------Eclipse also comes up with these warnings:

 

Build path specifies execution environment JavaSE-1.6. There are no JREs installed in the workspace that are strictly compatible with this environment.

 

Resource leak: '<unassigned Closeable value>' is never closed

 

The argument of type String[] should explicitly be cast to Object[] for the invocation of the varargs method translateToLocalFormatted(String, Object...) from type StatCollector. It could alternatively be cast to Object for a varargs invocation

 

The assignment to variable par2 has no effect

 

Unreachable catch block for IOException. Only more specific exceptions are thrown and they are handled by previous catch block(s).

 

---------Links-----------

 

http://pastebin.com/FHEkqgE8 - crash report.txt

http://pastebin.com/LLaqcP0H - client proxy.java

http://pastebin.com/f3LTt31q - common proxy.java

http://pastebin.com/7C0RQHBW - basic.java

Link to comment
Share on other sites

basic.zip/basic/Basic.class

should be

basic.zip/tutorial/basic/Basic.class

 

your general path for almost all files will be

basic.zip/tutorial/*

 

so say you make a class in tutorial.proxy you file path would be

basic.zip/tutorial/proxy/class name here

 

at first it may be confusing but remember that the package path is the file path your mod follows.

so when you see tutorial.basic.Basic its telling you that its trying to find, inside the zip file, tutorial/basic/Basic.class

Link to comment
Share on other sites

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.