781 B
781 B
Task 2
Structure
- lib: .jar files downloaded from apache. the downloaded file is extracted and the contents of the
libdirectory copied in here. - out: output binaries in packages
serverandclient - src: source code in 2 packages
clientandserver
How to run
-
First we compile the code (in linux using the following command)
# the "lib/*" tells jvm to include these libraries javac -cp "lib/*" -d out $(find src -name "*.java") -
Then we start the server. again run the following command
java -cp "out:lib/*" server.Server -
And finaly we run the client as such
java -cp "out:lib/*" client.Client