Can't do anything...

Posted:
20 Oct 2011, 00:12
by meisbored
I just updated Java to the newest version, but when I try to run any of the .bat files, it says "Windows cannot find 'javaw'. Make sure you typed the name correctly, and then try again". Then the cmd window says 'java' isn't a recognized command.
What am I missing here? I feel like it's something obvious but I'm drawing a blank.
Re: Can't do anything...

Posted:
20 Oct 2011, 01:19
by BetaSteward
Try running the .exe's instead of the .bat files. There should be one in the client folder and one in the server folder. They should be much better at find where java is installed.
By default the .bat files look for java in C:\Program Files\Java\jre6. If it isn't there then it uses whatever is in the PATH environment variable. If you add your new java dir to the PATH then the .bat files should work.
Re: Can't do anything...

Posted:
20 Oct 2011, 03:11
by Ugoff
I had the same problem, to fix it I edited the startClient.bat file
Changed the 2nd 2 lines (Lines 2 and 3) to:
- Code: Select all
IF NOT EXIST "C:\Program Files (x86)\Java\jre6\bin\" GOTO NOJAVADIR
set JAVA_HOME="C:\Program Files (x86)\Java\jre6\"
I'm running windows 7 if that helps.
Re: Can't do anything...

Posted:
25 Oct 2011, 20:37
by Belouve
I followed the steps in this video:
https://www.youtube.com/watch?v=X05JPrto_c8And then started the Server first, and the Client second. You may need to fix the Client .bat file as indicated above