Marauroa Chat Tutorial/Server: Difference between revisions

Content deleted Content added
imported>Fjacob
Cleaned up java code to adhere to the java coding conventions, changed some variable names to be more explicit.
imported>Fjacob
m Deployment: added a note that MacOSX and Linux users have to replace ; with : in the java classpath
Line 182:
 
== Deployment ==
So, we have two files, World.java and Rule.java, which contain the classes mentioned above.
 
YouOn Windows, you can compile them using command
<pre>
javac -cp marauroa.jar;log4j.jar;. *.java
</pre>
On Linux and MacOSX, you have to replace the ";" with ":".
<pre>
javac -cp marauroa.jar:log4j.jar:. *.java
</pre>
 
Line 217 ⟶ 221:
<pre>
java -cp marauroa.jar;h2.jar;log4j.jar;. marauroa.server.marauroad -c server.ini
</pre>
Again, on Linux and MacOSX, you have to replace the ";" with ":".
<pre>
java -cp marauroa.jar:h2.jar:log4j.jar:. marauroa.server.marauroad -c server.ini
</pre>