Hi, I am making a minecraft mod and in eclipse it says that there are no errors when i run it it says this:
---- Minecraft Crash Report ----
// Everything's going to plan. No, really, that was supposed to happen.
Time: 1/14/13 6:53 PM
Description: Exception occured in ModLoader
java.lang.InstantiationException
at sun.reflect.InstantiationExceptionConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at net.minecraft.src.ModLoader.addMod(ModLoader.java:395)
at net.minecraft.src.ModLoader.readFromClassPath(ModLoader.java:1406)
at net.minecraft.src.ModLoader.init(ModLoader.java:952)
at net.minecraft.src.ModLoader.addAllRenderers(ModLoader.java:190)
at net.minecraft.src.RenderManager.<init>(RenderManager.java:93)
at net.minecraft.src.RenderManager.<clinit>(RenderManager.java:14)
at net.minecraft.client.Minecraft.startGame(Minecraft.java:421)
at net.minecraft.src.MinecraftAppletImpl.startGame(MinecraftAppletImpl.java:41)
at net.minecraft.client.Minecraft.run(Minecraft.java:741)
at java.lang.Thread.run(Unknown Source)
The Meaning of Life, the Universe, and Everything.
Location:
Madison
Join Date:
7/11/2012
Posts:
1,702
Minecraft:
Mikko_blu
Member Details
Try reinstalling Modloader.
java.lang.InstantiationException
at sun.reflect.InstantiationExceptionConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at net.minecraft.src.ModLoader.addMod(ModLoader.java:395)
at net.minecraft.src.ModLoader.readFromClassPath(ModLoader.java:1406)
java.lang.InstantiationException
at sun.reflect.InstantiationExceptionConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at net.minecraft.src.ModLoader.addMod(ModLoader.java:395)
at net.minecraft.src.ModLoader.readFromClassPath(ModLoader.java:1406)
I tried it and it didn't work and I am makig a mod. when i run it in eclipse it says this: 27 achievements
210 recipes
Setting user: Player830, -
Client asked for parameter: server
LWJGL Version: 2.4.2
ModLoader 1.4.7 Initializing...
Failed to load mod from "mod_SuperBlock.class"
Done.
Starting up SoundSystem...
Initializing LWJGL OpenAL
(The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org)
Error in class 'LibraryLWJGLOpenAL'
Unable to initialize OpenAL. Probable cause: OpenAL not supported.
ERROR MESSAGE:
Could not locate OpenAL library.
STACK TRACE:
org.lwjgl.openal.AL.create(AL.java:153)
org.lwjgl.openal.AL.create(AL.java:104)
org.lwjgl.openal.AL.create(AL.java:191)
paulscode.sound.libraries.LibraryLWJGLOpenAL.init(SourceFile:164)
paulscode.sound.SoundSystem.CommandNewLibrary(SourceFile:1576)
paulscode.sound.SoundSystem.CommandQueue(SourceFile:2572)
paulscode.sound.CommandThread.run(SourceFile:121)
ERROR MESSAGE:
Could not locate OpenAL library.
Starting up SoundSystem...
Switching to No Sound
(Silent Mode)
Your mod is not coded correctly. The code has to be more than syntactically correct (no errors in Eclipse), it has to do the right thing at run time.
Specifically mod loader tries to load your mod, and your mod class fails to be Constructed.
Most likely thing is that you failed to implement all the abstract methods. Your mod class can not be abstract. Abstract classes cannot be constructed and are just raw materials for extending into other classes (like BaseMod.java is meant for).
Remove the abstract key word from your mod's constructor and fix any errors that creates (i.e. implement any missing methods that are still abstract).
Your mod is not coded correctly. The code has to be more than syntactically correct (no errors in Eclipse), it has to do the right thing at run time.
Specifically mod loader tries to load your mod, and your mod class fails to be Constructed.
Most likely thing is that you failed to implement all the abstract methods. Your mod class can not be abstract. Abstract classes cannot be constructed and are just raw materials for extending into other classes (like BaseMod.java is meant for).
Remove the abstract key word from your mod's constructor and fix any errors that creates (i.e. implement any missing methods that are still abstract).
Thanks, For the help. I am nine-can you please explain it to me in a easier way to understand? Thanks!
---- Minecraft Crash Report ----
// Everything's going to plan. No, really, that was supposed to happen.
Time: 1/14/13 6:53 PM
Description: Exception occured in ModLoader
java.lang.InstantiationException
at sun.reflect.InstantiationExceptionConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at net.minecraft.src.ModLoader.addMod(ModLoader.java:395)
at net.minecraft.src.ModLoader.readFromClassPath(ModLoader.java:1406)
at net.minecraft.src.ModLoader.init(ModLoader.java:952)
at net.minecraft.src.ModLoader.addAllRenderers(ModLoader.java:190)
at net.minecraft.src.RenderManager.<init>(RenderManager.java:93)
at net.minecraft.src.RenderManager.<clinit>(RenderManager.java:14)
at net.minecraft.client.Minecraft.startGame(Minecraft.java:421)
at net.minecraft.src.MinecraftAppletImpl.startGame(MinecraftAppletImpl.java:41)
at net.minecraft.client.Minecraft.run(Minecraft.java:741)
at java.lang.Thread.run(Unknown Source)
Please Reply
That Orange Is An Orange Lamp!
-
View User Profile
-
View Posts
-
Send Message
Retired StaffI tried it and it didn't work and I am makig a mod. when i run it in eclipse it says this: 27 achievements
210 recipes
Setting user: Player830, -
Client asked for parameter: server
LWJGL Version: 2.4.2
ModLoader 1.4.7 Initializing...
Failed to load mod from "mod_SuperBlock.class"
Done.
Starting up SoundSystem...
Initializing LWJGL OpenAL
(The LWJGL binding of OpenAL. For more information, see http://www.lwjgl.org)
Error in class 'LibraryLWJGLOpenAL'
Unable to initialize OpenAL. Probable cause: OpenAL not supported.
ERROR MESSAGE:
Could not locate OpenAL library.
STACK TRACE:
org.lwjgl.openal.AL.create(AL.java:153)
org.lwjgl.openal.AL.create(AL.java:104)
org.lwjgl.openal.AL.create(AL.java:191)
paulscode.sound.libraries.LibraryLWJGLOpenAL.init(SourceFile:164)
paulscode.sound.SoundSystem.CommandNewLibrary(SourceFile:1576)
paulscode.sound.SoundSystem.CommandQueue(SourceFile:2572)
paulscode.sound.CommandThread.run(SourceFile:121)
ERROR MESSAGE:
Could not locate OpenAL library.
Starting up SoundSystem...
Switching to No Sound
(Silent Mode)
Stopping!
the orange is a Orange Lamp!
Specifically mod loader tries to load your mod, and your mod class fails to be Constructed.
Most likely thing is that you failed to implement all the abstract methods. Your mod class can not be abstract. Abstract classes cannot be constructed and are just raw materials for extending into other classes (like BaseMod.java is meant for).
Remove the abstract key word from your mod's constructor and fix any errors that creates (i.e. implement any missing methods that are still abstract).
Thanks, For the help. I am nine-can you please explain it to me in a easier way to understand? Thanks!
That Orange Is A Orange Lamp
That Orange Is A Orange Lamp
Would it be possible to find out how exactly you got it to work? I seem to be having trouble with the same error (InstantiationException).