Before compiling/running the application, ensure that you have the following:
- Java Development Kit (JDK) installed on your system.
- The required JAR files in the
libfolder within the project directory. (hamcrest, junit, and postgresql) Compiling the Application To compile the source code, follow these steps: - Open a terminal or command prompt.
- Navigate to the project directory. (do not enter the edu folder yet)
- Compile the source files using the following command:
javac -cp lib/* edu/ucalgary/oop/*.java
This command compiles all Java files (
*.java) located in theedu/ucalgary/oopdirectory, with the classpath (-cp) set to include all JAR files (*) within thelibdirectory. Running the Application - After compiling the source code, execute the application
- Use the following command: java -cp "lib\postgresql-42.7.3.jar;." edu.ucalgary.oop.DisasterVictimInterface or java -cp "lib\postgresql-42.7.3.jar;." edu.ucalgary.oop.InquirerInterface