Chat Tutorial in NetBeans/Deploy GUI Client: Difference between revisions
imported>SimonSmall Added GUI client deployment |
imported>SimonSmall Added GUI client deployment |
(No difference)
| |
Revision as of 17:09, 21 January 2012
Deployment
As before, deployment is the copying of files from the development location to the live location.
Copy the client.jar file from the dist directory in the development location to the live location, replacing the existing client.jar with the new one.
Run it!
To test the server files open a command / terminal window in the PLAYPATH directory. Type the following lines (for a Windows system):
set LOCALCLASSPATH=.;lib/marauroa.jar;lib/log4j.jar;lib/h2.jar;lib/server.jar java -cp "%LOCALCLASSPATH%" marauroa.server.marauroad -c server.ini -l
For a UNIX / Linux system, use : instead of ; to define the LOCALCLASSPATH
The server should start up. This has not changed since the last part of this tutorial.
To test the client files open another command / terminal window. Type the following lines (for a Windows system):
set LOCALCLASSPATH=.;lib/marauroa.jar;lib/log4j.jar;lib/h2.jar java -cp "%LOCALCLASSPATH%" -jar "client.jar"
For a UNIX / Linux system, use : instead of ; to define the LOCALCLASSPATH
The client should start up, and your GUI client window will be shown.
Simple Tests
Type test1 in the Username box. Type test1 in the Password box. Click the Connect button. A few lines are printed in the large Chat area. Type something in the bottom text field, then click Say. What you typed will be shown in the Chat area.
Now type test2 in the Username box, and test2 in the Password box. Click the Connect button and a small Error box is shown. There is no user called test2 at the moment. Retype those fields, then type test2@mail.net in the eMail field. Now click the Connect button. This is successful; a new user has been created.
Checking the Database
You can check what is held in the database. This allows you check which users have been registered, and may be useful later when developing a game; you can make sure the data is being saved correctly. See here.