task 2 may be done.
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
## Task 2
|
||||
|
||||
### Structure
|
||||
***
|
||||
1. **lib:** .jar files downloaded from [apache](https://archive.apache.org/dist/ws/xmlrpc/binaries/). 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)
|
||||
```bash
|
||||
# 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
|
||||
```bash
|
||||
java -cp "out:lib/*" server.Server
|
||||
```
|
||||
|
||||
3. And finaly we run the client as such
|
||||
```bash
|
||||
java -cp "out:lib/*" client.Client
|
||||
```
|
||||
Reference in New Issue
Block a user