Chat Tutorial in NetBeans/Text Client: Difference between revisions

Jump to navigation Jump to search
Content deleted Content added
imported>SimonSmall
Tidy up
imported>SimonSmall
Build the Project: Added log4j.jar library
Line 257: Line 257:
== Build the Project ==
== Build the Project ==


If there are no errors in the package, select '''Run''', '''Build Main Project''' from the NetBeans menu bar. This will create '''client.jar''' in the '''dist''' directory.
If there are no errors in the package, there is one last thing to do. Although this does not create a compile error it will create an error when you run the Text Client.

Copy the '''log4j.jar''' file from the downloaded source files to the '''libs''' directory (created above). Right click the '''Libraries''' branch of the server Project tree, and select '''Add Jar/Folder'''. Browse to the the libs directory for this project and select the log4j.jar file.

Finally, select '''Run''', '''Build Main Project''' from the NetBeans menu bar. This will create '''client.jar''' in the '''dist''' directory, and copy the jar files from the libs directory to the '''lib''' sub-directory of dist.


== Completion ==
== Completion ==