Minecraft in /lib and JRE6 there
3 replies [Last post]
craigmt1
WoM Member
Members
WoM Member: 31709
WoM Coins: 0

SOLVED:  I was running it from an account which was running on a server (a UNC path starting with // instead of "C://").  I moved the folder to the hard disk and voila, it worked.

I'm running Windows XP, I have the latest version of Java, Mincraft.jar and the World of Minecraft client.  I changed the path for Java 6 (though it was probably unnecessary, to what others have suggested:

set JAVA6="C:\Program Files\Java\jre6\bin\java.exe"

Minecraft.jar is in the lib folder, and yet in the console I still get:

'\\****\data\redirection\********\Desktop\World of Minecraft'
CMD.EXE was started with the above path as the current directory.
UNC paths are not supported.  Defaulting to Windows directory.
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"
Press any key to continue . . .

What should I do?

adsy
WoM Member
Members
WoM Member: 33265
WoM Coins: 0
have you tried setting java

have you tried setting java to auto?

set JAVA6="auto"
just curious

nikalus
WoM Member
Members
WoM Member: 12617
WoM Coins: 15
well

you failed to read the instructions.

Go back to the Custom Client page and find the URL to download the minecraft.jar
WoM is not allowed to distribute the minecraft.jar as Notch will not allow distribution of his game by any third party.

As for your java problem, (im not much of a windows person so im not totally sure) you'll probably have to rewrite the run.bat so that the path to java.exe is correct.
When you go to edit your run.bat file, the first three lines should say

Quote:
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"

In other words, if the current path is not right, you need to change the path in order for it to work.

If anything I wrote is not accurate, and you know a better way, or if I was just completely and absolutely wrong, feel free to correct whatever mistakes I made.

craigmt1
WoM Member
Members
WoM Member: 31709
WoM Coins: 0
Read a little closer

I've tried everything that has been suggested on this forum that I can find, including those two things.

I downloaded and dropped minecraft.jar in the /lib folder first.

When that didn't work, I changed the .bat java path from "auto" to its location on my computer (its there and its the latest version, I checked).  This was probably unnecessary since it already pointed there according to the console.

In its current state (minecraft.jar in lib and the bat file pointing to java 6 on my disk) it doesn't work and I have no idea why.  Other people seem to have met these conditions and had the same problem but I have yet to see a solution.  Does anybody know whats wrong?

EDIT: Never mind, I figured it out, see above.