"Cannot find the main class: Main" even though I HAVE Minecraft.jar
9 replies [Last post]
Flame
WoM Member
Members
WoM Member: 151053
WoM Coins: 1

I opened My client.
It automatically updated and said that when I opened it again, it would be running the newest version.

Now it cant find Main. I checked the troubleshooting on the download page, and it says that I need Minecraft.jar. I DO have Minecraft.jar though.And it IS in the right folder. (Lib)  I tried re-downloading Minecraft.jar, but still nothing.

Amokov
WoM Member
Members
WoM Member: 146204
WoM Coins: 0
Uncapatalize that M! Someone

Uncapatalize that M!

Someone needs to equalsIgnoreCase()

asg0noir
WoM Member
Members
WoM Member: 151405
WoM Coins: 0
What do you mean

What do you mean uncapitalize? Which M should be changed and where?

Im having the exact same problem as the original poster.
minecraft.jar is in the lib folder
i have set the java path to my JRE Java.exe (in my case SET JAVA6="C:\Program Files (x86)\Java\jre\bin\java.exe")
When ran i get the following error which seems identicial to the original posters:
Starting java from "C:\Program Files (x86)\Java\jre\bin\java.exe"
Exception in thread "main" java.lang.NoClassDefFoundError: com/mojang/minecraft/
MinecraftApplet
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClassCond(ClassLoader.java:632)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:616)
        at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:14
1)
        at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
        at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
Caused by: java.lang.ClassNotFoundException: com.mojang.minecraft.MinecraftApple
t
        at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
        ... 12 more
Could not find the main class: Main.  Program will exit.
ERROR: Failed to run minecraft
JAVA6="C:\Program Files (x86)\Java\jre\bin\java.exe"
Press any key to continue . . .
hope someone can help :)

whofan
WoM Member
Members
WoM Member: 149426
WoM Coins: -2
same problem I have it put in

same problem I have it put in but it dosn't run

bobsterkluk
WoM Member
Members
WoM Member: 34294
WoM Coins: 0
Don't listen to Amokov

I think he means the capitol m on your mincraft.jar file, but that wouldn't matter that I know of, since mine is lowercase, and I still have your problem. If I find a solution, I'll tell you.

niels
Staff Member
Community Managers
WoM Member: 1857
WoM Coins: 1714
only thing where i can think

only thing where i can think of is re-downloading minecraft.jar and putting it in lib folder...

bobsterkluk
WoM Member
Members
WoM Member: 34294
WoM Coins: 0
Sort of solution

http://www.worldofminecraft.com/Minecraft_Custom_Client_Wrapper_Download
Get the World of Minecraft client from here again. Extract everything.

https://s3.amazonaws.com/MinecraftDownload/classic/minecraft.jar
Get this and put it in the "lib" folder in your World of Minecraft client folder.

I just had it work for me, so maybe it will for you? Best of luck.

Flame
WoM Member
Members
WoM Member: 151053
WoM Coins: 1
huh. fixed...

My .jar isnt capital, that was just me capitalizing the name of the file.

Huh... I tried redownloading it before, but now that I think of it, I ws just transferring the old minecrat.jar to the new lib... it works now. But I should not have HAD to re-download it.

ace31100
WoM Member
Members
WoM Member: 151902
WoM Coins: 0
Okay...

So i did that. No error, but nothing happens after.. It just says starting, and nothing loads.

Flame
WoM Member
Members
WoM Member: 151053
WoM Coins: 1
Give it some time. or, close

Give it some time. or, close it and start it up again. Eventually it does work.

Mine did the same thing.