Resolved: Yay! Windows Vista 64bit =.= Halp? main
2 replies [Last post]
EddFace
WoM Member
Members
WoM Member: 1389
WoM Coins: 0

LONG STORY SHORT "Could not find the main class: main. Program will exit."

Hi guys, first post, not the best way to join a forum haha.
So here it is, when I ran the batch file, it instantly closed and nothing happened, so I go to look what went wrong....

I should probably note ahead of time that I changed the batch file from saying
"java -Xms512M -Xmx512M -classpath"
to
"C:\WINDOWS\SysWOW64\java -Xms512M -Xmx512M -classpath"
Because vista is retarded like that.

According to cmd this failed in my face:
C:\Users\*****\cd desktop

C:\Users\*****\Desktop>cd womclient-1.3

C:\Users\*****\Desktop\womclient-1.3>run.bat
Exception in thread "main" java.lang.NoClassDefFoundError: main
Caused by: java.lang.ClassNotFoundException: main
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
Could not find the main class: main. Program will exit.

C:\Users\Eduardo\Desktop\womclient-1.3>

moujave
Removed from Staff
Members
WoM Member: 21
WoM Coins: 1687
Client Crash

Install the 32bit version of java instead, if that fails install the lastest video card drivers.

kryptn
WoM Member
Members
WoM Member: 33
WoM Coins: 1
fix

Well, first make sure you have everything downloaded. This includes Notch's minecraft.jar, AND a successful extraction from the wrapper zip file. I got that error, then i realized it wasn't successful.

And a tip, instead of the path you use, i've always used "C:\Program Files (x86)\Java\jre6\bin\java"