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

Content deleted Content added
imported>SimonSmall
Tidy up
imported>SimonSmall
Wrong directory used (typo)
Line 3:
Deployment is the copying of files from the Development directories to a location that will be accessed by the users. Do not expect these to be the same.
 
You will need a location for the destination of your developed code. This is referred to as '''PLAYPATH'''. Replace this with whatever you have chosen as that location. Create sub-directories '''libslib''' and '''log'''.
 
== Marauroa ==
 
If you built the Marauroa engine from source code, it creates a '''marauroa.jar''' file in the '''dist''' directory of the marauroa project.
* Copy the '''marauroa.jar''' file from the dist directory into the libslib sub-directory of PLAYPATH.
 
== Other libslib files ==
 
If you did not build the '''marauroa.jar''' file from source, you will need to copy this from the downloaded sources to the libslib directory. You also need to copy '''h2.jar''' and '''log4j.jar''' from the downloaded sources to the libslib directory.
 
== Server ==
 
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 libslib 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.
* Create an empty '''admins.txt''' file in your PLAYPATH directory.
Line 33:
 
<pre>
set LOCALCLASSPATH=.;libslib/marauroa.jar;libslib/log4j.jar;libslib/h2.jar;libslib/server.jar
 
java -cp "%LOCALCLASSPATH%" marauroa.server.marauroad -c server.ini -l
Line 47:
 
<pre>
set LOCALCLASSPATH=.;libslib/marauroa.jar;libslib/log4j.jar;libs/h2.jar
 
java -cp "%LOCALCLASSPATH%" -jar "client.jar" test1 test1 test1@mail.net