The "Could not find the main class: Main." problem???
14 replies [Last post]
Marsman75
WoM Member
Members
WoM Member: 94038
WoM Coins: -1

Hi!

I have this problem with my World of Minecraft client. I run Win7 32bit Version, Java 6.

I have the Minecraft.jar in lib folder, I have downloaded many versions of it and files ARE placed as they should be by instructions. JAVA do work since I use it to other software without problems. Read many posts about this bu nothing seem to work :( Ideas anyone?

This error comes when the run.bat file is run without admin rights and
after it ask me to press a key and if i press one it shuts down...

Autodetecting java
Testing default folder
Checking C:\Program Files\Java\jre6 folder
Found java in C:\Program Files\Java\jre6 folder
Starting java from "C:\Program Files\Java\jre6\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(Unknown Source)
        at java.lang.ClassLoader.defineClass(Unknown Source)
        at java.security.SecureClassLoader.defineClass(Unknown Source)
        at java.net.URLClassLoader.defineClass(Unknown Source)
        at java.net.URLClassLoader.access$000(Unknown Source)
        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)
Caused by: java.lang.ClassNotFoundException: com.mojang.minecraft.MinecraftApple
t
        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)
        ... 12 more
Could not find the main class: Main.  Program will exit.
ERROR: Failed to run minecraft
JAVA6="C:\Program Files\Java\jre6\bin\java.exe"

This error comes when I test run the run.bat with admin rights. With same result, the clien shuts down.

Autodetecting java
Testing default folder
Checking C:\Program Files\Java\jre6 folder
Found java in C:\Program Files\Java\jre6 folder
Starting java from "C:\Program Files\Java\jre6\bin\java.exe"
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)
Could not find the main class: Main.  Program will exit.
========================================
Warning: lib\minecraft.jar not found.
Did you read instructions / download it?
========================================
ERROR: Failed to run minecraft
JAVA6="C:\Program Files\Java\jre6\bin\java.exe"

Equals
WoM Member
Members
WoM Member: 98048
WoM Coins: 0
...

Notice: There is a new Official WoM Client out (3.0) which addresses many issues.

Jao247
WoM Member
Members
WoM Member: 62451
WoM Coins: -2
where did you gete the

where did you gete the minecraft.jar

from the alpha download pg?
if so the wrong .jar file
use the web link from the NOTE on the client pg.
remove current .jar file 
replace with one from link try again and tell me if this works
hope this helps
i had a similar problem but i had the wrong .jar file
i dont have win. 7
i have win.xp
good luck

Marsman75
WoM Member
Members
WoM Member: 94038
WoM Coins: -1
Hi! Oh my, I have downloaded

Hi!

Oh my, I have downloaded it 20 times from Minecraft download page, never thought the url in the description was some other version, worked right away when I used that link. Thanks for this!

Sorry for you World of Minecraft creators, I should tried the link before. My bad :)
Problem solved.

If anyone get same error as me USE THE LINK IN THE INFO for the mincraft.jar file ;)

Jao247
WoM Member
Members
WoM Member: 62451
WoM Coins: -2
glad to help

glad to help

amlweems
WoM Member
Members
WoM Member: 98391
WoM Coins: 0
Alpha Version

The link is only for the classic version. Is there a way to get the alpha version to work?

Equals
WoM Member
Members
WoM Member: 98048
WoM Coins: 0
I'm getting little bit diferent error

Autodetecting java
Testing default folder
Checking C:\Program Files\Java\jre6 folder
Found java in C:\Program Files\Java\jre6 folder
Checking C:\Program Files\Java\jdk1.6.0_14 folder
Found java in C:\Program Files\Java\jdk1.6.0_14 folder
Starting java from "C:\Program Files\Java\jdk1.6.0_14\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.defineClass(ClassLoader.java:621)
        at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:12
4)
        at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
        at java.net.URLClassLoader.access$000(URLClassLoader.java:56)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
Caused by: java.lang.ClassNotFoundException: com.mojang.minecraft.MinecraftApple
t
        at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
        ... 12 more
Could not find the main class: Main.  Program will exit.
ERROR: Failed to run minecraft
JAVA6="C:\Program Files\Java\jdk1.6.0_14\bin\java.exe"
Press any key to continue . . .

Kirosha
WoM Member
Members
WoM Member: 95234
WoM Coins: -1
This might not fix the

This might not fix the problem but,

You are running an old version of Java, you need to either update it or if it is updated, change the auto detection of java off and set the updated path in the run.bat text edit.

Go to the Run.Bat Fileamd right click it. Then left click on edit.

This comes up at the very top of the text file:

@echo off

rem If you have a custom path to java, change auto below to
rem point to your java.exe file
rem eg:  set JAVA6="C:\MyPath\bin\java.exe"

The next line starting as: "set JAVA6=" Needs to be edited to the correct path

muehli1991
WoM Member
Members
WoM Member: 99286
WoM Coins: 0
Error

Hi

I am not able to open the link given in the notes. (minecraft.jar)

can someone help?

Kirosha
WoM Member
Members
WoM Member: 95234
WoM Coins: -1
https://s3.amazonaws.com/Mine
mik123mik1
WoM Member
Members
WoM Member: 72886
WoM Coins: 0
alpha?

is there any way to get the alpha to work with the client? Iv'e been trying to get this to work for weeks!

Jao247
WoM Member
Members
WoM Member: 62451
WoM Coins: -2
there is no way to get the

there is no way to get the client working with alpha as far as i know

Geertje123
WoM Member
Members
WoM Member: 99547
WoM Coins: -4
have you guys checked your

have you guys checked your firewalls yet?

Jrwizbang
WoM Member
Members
WoM Member: 99796
WoM Coins: 0
JAVA

I put in the correct minecraft.jar file, and i still get the same error that MarsMan75 and Equals were getting. I've tried changing the directory to java to C:\program files\java\jre6\bin\java.exe and even C:\program files\java\jre1.6.0_20\bin\java.exe and nothing works. I don't know what to do please help.

XMaZaX
WoM Member
Members
WoM Member: 33389
WoM Coins: 0
it seems i have the same

it seems i have the same problem. actually, i cant open ANY .jar file. just like the java is broken or something, i don't know. I have the new java and all that, but nothing seems to be working. "could not find the main class: main" <- that pops up always. 

Help would be very nice, since i can't find help for this problem anywhere. 
edit.
Ok, only way i can open jarfiles is to run them as "java - jar Minecraft.jar"
is there any way that we could edit the "run.bat" so it would work?