Files
DistributedSystems/week3_TinsaeGhilay/Task 2/README.md
2025-12-21 21:30:45 +01:00

781 B

Task 2

Structure


  1. lib: .jar files downloaded from apache. the downloaded file is extracted and the contents of the lib directory copied in here.
  2. out: output binaries in packages server and client
  3. src: source code in 2 packages client and server

How to run


  1. 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")
    
  2. Then we start the server. again run the following command

    java -cp "out:lib/*" server.Server
    
  3. And finaly we run the client as such

    java -cp "out:lib/*" client.Client