| Book of WolfMUD | ||
|---|---|---|
| <<< Previous | Next >>> | |
Compiling WolfMUD from source can be very easy even if you are only using the standard Java Development Kit can not a fancy IDE. However just compiling the sources using javac on the main wolfServer.javawill not work and you will find only about a third of the sources are compiled.
You might ask why is this? Compiling the base wolfServer.java file causes it and also any classes it depends on to be compiled. However WolfMUD does not directly reference all of it's classes, it uses reflection quite a bit. This means the compiler cannot know about the other classes as they are loaded at runtime.
The easiest way to get around this is to quickly check and compile all of the source files automatically. However you may find you need a JDK version 1.3.0 or higher to use the javac @<filename> method of compiling as other versions of the JDK have problems especially under Windows.
These commands will build a list of all of the java files which can then be used as input into the javac command to compile everything. The commands can either be entered again and again or put into a batch file. It is assumed that WolfMUD has been installed into c:\wolfmud and the sources into c:\wolfmud\sources.
cd c:\wouldmud\sources dir /B /S *.java file.list javac -d c:\wolfmud @file.list |
| <<< Previous | Home | Next >>> |
| Combat Text | Compiling under Unix/Linux |