Error Failed to run Minecraft (run.bat)
4 replies [Last post]
TehKayy
WoM Member
Members
WoM Member: 54292
WoM Coins: 0

Ok so here's what i've done so far.
i uninstalled Java completely, reinstalled it.
still failed.
changed the path in the EDIT on the run.bat to the java.ex directly, still got this.
deleted it all, redownloaded it, failed
switched to firefox, deleted it all, redownloaded it all, failed
i get this error, EVERY. SINGLE. TIME
how the hell do i get this thing to work???
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"
Press any key to continue . . .

TaysonWest
WoM Member
Members
WoM Member: 49751
WoM Coins: 4
Error RE:

Hi i have got this problem before with creative mulitplayer it stands like that i think but i have bought the game now but i got no problems something big java problem maybe i don't know how i fix the problem sorry....

David McAllister
WoM Member
Members
WoM Member: 54909
WoM Coins: 0
I had the same issue and

I had the same issue and fixed it by right clicking on the downloaded minecraft.jar file > properties > unblock.

After that it seems to work without issues.

TehKayy
WoM Member
Members
WoM Member: 54292
WoM Coins: 0
i dont see an unblock button,

i dont see an unblock button, any others have any ideas what to do?

Koni
WoM Member
Members
WoM Member: 55134
WoM Coins: 0
Ah...

I had the same problem. Right click on "run.exe" and click "edit", A bunch of stuff should open in notepad.

Find a line that looks like "%JAVA6% -classpath skin;lib\jinput.jar;lib\lwjgl.jar;lib\lwjgl_util.jar;lib\World of Minecraft.jar;lib\minecraft.jar -Djava.library.path=native\windows -Dsun.java2d.noddraw=true -Dsun.awt.noerasebackground=true -Dsun.java2d.d3d=false -Dsun.java2d.opengl=false -Dsun.java2d.pmoffscreen=false -Xmx800M Main"

Locate the "lib\minecraft.jar" in that line and point it to the minecraft.jar file (in the lib folder) manually, then save the file. That should work.

You could also try running as administrator, though that didn't work so well for me.