So I just got Minecraft 1.0.0 and wanted to make mods for it. So I have been using mcp and it works great but I wanted to try out Mod Loader. I downloaded it and installed it as it said. Just to make it clear, I took the class files and put them in the minecraft.jar file, then deleted the meta-inf folder like said. Next I run it and i get this error.
Exception in thread "Minecraft main thread" java.lang.NoClassDefFoundError: ModLoader
full error report
Exception in thread "Minecraft main thread" java.lang.NoClassDefFoundError: ModLoader
at wb.<init>(wb.java:76)
at wb.<clinit>(wb.java:9)
at net.minecraft.client.Minecraft.a(SourceFile:265)
at net.minecraft.client.Minecraft.run(SourceFile:644)
at java.lang.Thread.run(Thread.java:679)
Caused by: java.lang.ClassNotFoundException: ModLoader
at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
... 5 more
So this has been very annoying lol; I read it might have to do with the classpath? I don't know if this is the correct place to put this but I'm new here lol.
Oh and I'm on Ubuntu 11.10 :smile.gif:
Thanks in advance
The Fix!!!
Apparently when you copy the files in minecraft.jar file, one of them like ModLoader.class goes in a new folder called java/lang. So the zip program makes that new folder and puts the file in their for some reason. To fix it just take the ModLoader.class file and copy it to the root directory and delete the java/lang folder.
That Simple :smile.gif:
Also the NoClassDefFoundError basically means that the class is there somewhere, but is being accesses wrong. like above that ModLoader.class wasn't in the root directory so it couldn't find it. So just make sure the classes are in the right place. Note that NoClassDefFoundError and ClassNotFoundException are completely different errors. ClassNotFoundException means that there is no class to be found. If someone can explain it better, please do lol.
Well I found the problem. Every time I would copy the files in the minecraft.jar , it would make a folder java/lang and put the ModLoader.class file in there. I don't know if its zip the program or not thats making that problem. So I just copied the file to the correct place and its all good now.
I have the same problem, I tried to Run ModLoader with Millénaire and Metallurgy mod, All for 1.0.0, it's happening with my friend too, it only happens with ModLoader, and I DELETED THE META-INF FOLDER, so don't ask :wink.gif:
Well I found the problem. Every time I would copy the files in the minecraft.jar , it would make a folder java/lang and put the ModLoader.class file in there. I don't know if its zip the program or not thats making that problem. So I just copied the file to the correct place and its all good now.
I have the same problem, I tried to Run ModLoader with Millénaire and Metallurgy mod, All for 1.0.0, it's happening with my friend too, it only happens with ModLoader, and I DELETED THE META-INF FOLDER, so don't ask :wink.gif:
Don't works for me! D=
So you got the same error message as me? Well make sure that your mod files are not in any other folders. like the zip program i used, made a java/lang folder and put one of the .class files in it. idk why lol. most of the time java.lang.NoClassDefFoundError means that the class is there, but is being accessed wrong. I found out my problem by searching each class and making sure it's in the root directory in the jar file(not in any other folders)
Rollback Post to RevisionRollBack
Same ****, different day - Modification Development Section
Well I found the problem. Every time I would copy the files in the minecraft.jar , it would make a folder java/lang and put the ModLoader.class file in there. I don't know if its zip the program or not thats making that problem. So I just copied the file to the correct place and its all good now.
THANK YOU I LOVE YOU!
xD
Rollback Post to RevisionRollBack
LWR's are for plutonium, not power. CANDU's are the nuclear master race.
Well I found the problem. Every time I would copy the files in the minecraft.jar , it would make a folder java/lang and put the ModLoader.class file in there. I don't know if its zip the program or not thats making that problem. So I just copied the file to the correct place and its all good now.
I have all my modloader files in the correct place, but my game still crashes each time i try to launch it. For some reason, it wont let me add mods to 1.0.0 :sad.gif:
I have all my modloader files in the correct place, but my game still crashes each time i try to launch it. For some reason, it wont let me add mods to 1.0.0 :sad.gif:
(i deleted the META-INF folder. don't ask)
hmm, well don't really know what the problem could be with an error report.
Rollback Post to RevisionRollBack
Same ****, different day - Modification Development Section
Well I found the problem. Every time I would copy the files in the minecraft.jar , it would make a folder java/lang and put the ModLoader.class file in there. I don't know if its zip the program or not thats making that problem. So I just copied the file to the correct place and its all good now.
So wait,how DO you copy the file to the right place?I've tried time and time again and I can't seem to get it.
So wait,how DO you copy the file to the right place?I've tried time and time again and I can't seem to get it.
So this is what you do, copy the ModLoader files in the jar file. If you on Ubuntu I'm guessing your using Archive Manager. Then check for a folder called java/lang and if there are any files in there. just copy them and paste them in the jar root. It shouldn't move them back when you do that. Well if you don't have a folder called java/lang your all good and it might be another problem. Oh and also delete the java/lang folder when your done.
I should put all files from the mod(folder and .class) in winrar to the lang, or only the .class files and the folders to the minecraft.jar???????
Should I remove the folder lang and put the .class to the minecraft.jar?
Your on Ubuntu? Didn't know they have winrar in it lol. Anyways; So you copy all the .class files in the minecraft.jar file. If there is a folder called java/lang you need to take the .class files out of it and put them back into the root of minecraft.jar. Then delete the java/lang folder, NOT the /lang folder.
Rollback Post to RevisionRollBack
Same ****, different day - Modification Development Section
Your on Ubuntu? Didn't know they have winrar in it lol. Anyways; So you copy all the .class files in the minecraft.jar file. If there is a folder called java/lang you need to take the .class files out of it and put them back into the root of minecraft.jar. Then delete the java/lang folder, NOT the /lang folder.
i have only folder in the zip called lang not java/lang
and the .class file doesnt move to lang folder they stay in the minecraft.jar and when i starting minecraft it still black screen!
i have only folder in the zip called lang not java/lang
and the .class file doesnt move to lang folder they stay in the minecraft.jar and when i starting minecraft it still black screen!
btw im not in Ubuntu
Well this thread is a problem for ubuntu and your problem has nothing to do with this. So your in the root of the minecraft.jar file right? Now you copy all the .class files into and make sure your don't put them in any folder. The Lang folder should be there and you don't want to delete it or move any files in it. Once you have done that try it again. If you get another black screen just run it in command prompt and see what errors come up. Also in your minecraft directory there should be a modloader.txt file that will show errors too.
Rollback Post to RevisionRollBack
Same ****, different day - Modification Development Section
Exception in thread "Minecraft main thread" java.lang.NoClassDefFoundError: ModLoader
full error report
So this has been very annoying lol; I read it might have to do with the classpath? I don't know if this is the correct place to put this but I'm new here lol.
Oh and I'm on Ubuntu 11.10 :smile.gif:
Thanks in advance
The Fix!!!
Apparently when you copy the files in minecraft.jar file, one of them like ModLoader.class goes in a new folder called java/lang. So the zip program makes that new folder and puts the file in their for some reason. To fix it just take the ModLoader.class file and copy it to the root directory and delete the java/lang folder.
That Simple :smile.gif:
Also the NoClassDefFoundError basically means that the class is there somewhere, but is being accesses wrong. like above that ModLoader.class wasn't in the root directory so it couldn't find it. So just make sure the classes are in the right place. Note that NoClassDefFoundError and ClassNotFoundException are completely different errors. ClassNotFoundException means that there is no class to be found. If someone can explain it better, please do lol.
opps sorry I meant the meta-inf folder, so yes I did lol.
Don't works for me! D=
So you got the same error message as me? Well make sure that your mod files are not in any other folders. like the zip program i used, made a java/lang folder and put one of the .class files in it. idk why lol. most of the time java.lang.NoClassDefFoundError means that the class is there, but is being accessed wrong. I found out my problem by searching each class and making sure it's in the root directory in the jar file(not in any other folders)
THANK YOU I LOVE YOU!
xD
I love you too! Thanks so much!
(i deleted the META-INF folder. don't ask)
hmm, well don't really know what the problem could be with an error report.
i found the problem. the mods folder was cluttered with stuff so i cleared it out, and now everything works
So wait,how DO you copy the file to the right place?I've tried time and time again and I can't seem to get it.
So this is what you do, copy the ModLoader files in the jar file. If you on Ubuntu I'm guessing your using Archive Manager. Then check for a folder called java/lang and if there are any files in there. just copy them and paste them in the jar root. It shouldn't move them back when you do that. Well if you don't have a folder called java/lang your all good and it might be another problem. Oh and also delete the java/lang folder when your done.
hmm I don't know but I have been looking into it
Should I remove the folder lang and put the .class to the minecraft.jar?
Your on Ubuntu? Didn't know they have winrar in it lol. Anyways; So you copy all the .class files in the minecraft.jar file. If there is a folder called java/lang you need to take the .class files out of it and put them back into the root of minecraft.jar. Then delete the java/lang folder, NOT the /lang folder.
i have only folder in the zip called lang not java/lang
and the .class file doesnt move to lang folder they stay in the minecraft.jar and when i starting minecraft it still black screen!
btw im not in Ubuntu
Well this thread is a problem for ubuntu and your problem has nothing to do with this. So your in the root of the minecraft.jar file right? Now you copy all the .class files into and make sure your don't put them in any folder. The Lang folder should be there and you don't want to delete it or move any files in it. Once you have done that try it again. If you get another black screen just run it in command prompt and see what errors come up. Also in your minecraft directory there should be a modloader.txt file that will show errors too.
I am using power archiver to open the .jar file. Is it already gone? or is this a power archiver issue? Do I need WinRAR instead?