Run.bat Issue
2 replies [Last post]
paininflictor
WoM Member
Members
WoM Member: 94901
WoM Coins: 0

Here is the error I am getting:

Autodetecting java
Testing x86 folder
Checking C:\Program Files (x86)\Java\jre6 folder
Found java in C:\Program Files (x86)\Java\jre6 folder
Starting java from "C:\Program Files (x86)\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 (x86)\Java\jre6\bin\java.exe"
Press any key to continue . . .

My problem is that that is the directory of my java.exe. I have checked the edit file to make sure it is correct and it is. I also execute minecraft.jar from this location and it works perfectly. I just can't understand why when i run the run.bat this error pops up.

Also have tried and failed:

1. Run as administrator - Same error message except for it adds the did you read the instructions?

2. Capatability -  Have tried with windows vista service pack one and two, and with xp service packs one two and three and still same error.

3. Uninstall/reinstall: after have done this five or six times, i still can't seem to understand why i get the same error.

4. Read instructions/user feedback to solve the issue: No results found.

If someone could be so kind as to help me out I would be greatful. Thanks for your time in reading. Hope there is a way to fix.

neomatrixj2
WoM Member
Members
WoM Member: 73393
WoM Coins: -1
download this and place in

download this and place in the lib folder inside the folder your client is in
https://s3.amazonaws.com/MinecraftDownload/classic/minecraft.jar

hedghog30
WoM Member
Members
WoM Member: 104295
WoM Coins: 0
Problems

Every time I try to run run.bat on my mac, it asks for an application to run it with, I try my Java, but it says "Java preferences can't  run that application"