Following are steps to be followed to compile and run the final project
Step 1: Navigate into the build folder present in the main directory
Step 2: Run the following command on command prompt
javac -cp OOP_JavaProject.jar PreElection.java ElectionAndResult.javaTo open CitizenRegistrationPortal, run the following command
java -cp OOP_JavaProject.jar PreElection OpenCitizenRegistrationPortalTo open AadharCardGenerator, run the following command
java -cp OOP_JavaProject.jar PreElection OpenAadharGeneratorTo release CandidateLists, run the following command
java -cp OOP_JavaProject.jar PreElection releaseCandidateListsTo open VoterRegistrationPortal, run the following command
java -cp OOP_JavaProject.jar PreElection OpenVoterRegistrationPortalTo open CandidateAdditionPortal, run the following command
java -cp OOP_JavaProject.jar PreElection OpenCandidateAdditionPortalTo run ElectionAndResult, run the following command:
java -cp OOP_JavaProject.jar ElectionAndResultThe key to terminate election is 144. The same can be changed by manipulating the while condition in ElectionAndResult.java