Pages

Saturday, September 3, 2011

PC: Server not starting?

If you are seeing the following message:
'java' is not recognized as an internal or external command, operable program or batch file.
Then we need to make a change to the batch file.
  1. Open the .bat file in a text editor like notepad (right-click>'open with'>notepad)
  2. add the following line at the start of the first line
java -classpath "C:\Program Files\Java\jre1.6.0_22\bin"
java -jar Server_1.02.jar

 The text in bold will depend on what version of java is installed and where it is located on your system. Be sure to change these if necessary! Make sure your newly edited batch file is in the same folder as the .jar file.

Now you should be able to double-click the batch file and get started!