Chat Tutorial in NetBeans/Deploy Text Client: Difference between revisions

Jump to navigation Jump to search
Content deleted Content added
imported>SimonSmall
Revised deployment
imported>SimonSmall
m Server: removed superfluous -l parameter
 
(13 intermediate revisions by the same user not shown)
Line 18: Line 18:
When you build the Server library, it creates a '''server.jar''' file in the '''dist''' directory of the Server project.
When you build the Server library, it creates a '''server.jar''' file in the '''dist''' directory of the Server project.
* Copy the '''server.jar''' file into the lib sub-directory of PLAYPATH.
* Copy the '''server.jar''' file into the lib sub-directory of PLAYPATH.
* Copy the '''server.ini''' and '''log4j.properties''' files from the '''src\server''' directory of the Server project to your PLAYPATH directory.
* Copy the '''server.ini''' and '''log4j_server.properties''' files from the '''src\server''' directory of the Server project to your PLAYPATH directory.
* Create an empty '''admins.txt''' file in your PLAYPATH directory.
* Create an empty '''admins.txt''' file in your PLAYPATH directory.
* Copy '''h2.jar''' from the downloaded sources to the lib sub-directory, assuming you are using the h2 database.
* Copy '''h2.jar''' from the downloaded sources to the lib sub-directory, assuming you are using the h2 database.
Line 31: Line 31:
set LOCALCLASSPATH=.;lib/marauroa.jar;lib/log4j.jar;lib/h2.jar;lib/server.jar
set LOCALCLASSPATH=.;lib/marauroa.jar;lib/log4j.jar;lib/h2.jar;lib/server.jar


java -cp "%LOCALCLASSPATH%" marauroa.server.marauroad -c server.ini -l
java -cp "%LOCALCLASSPATH%" marauroa.server.marauroad -c server.ini
</pre>
</pre>