A collection of Java applications ranging from a finite state machine interpreter to a vector drawing application.
- Clone the Repository:
git clone https://github.com/fraserlove/java-lab.git
cd java-lab
- Install Java:
Make sure a version of Java is installed on your system. Run java --version
to check if you have it installed. If not, simply install java on your operating system. For instance, on macOS type:
brew install java
Each application has their own README
file. Look under usage to see how to compile and run each application separately. The example below shows you how to complie and run the P2P file sharing application.
- Compile Java from Source:
The application can be compiled and ran using the following commands inside the project folders /src
directory.
cd p2p-file-sharing/src
javac FileShareMain.java
- Run the Compiled Program:
java FileShareMain