A simple Java command-line application which manages a database of students. The application has the ability to parse an existing database or create a new database of students. For convenience, the final production application has been compiled into a JAR and an executable .exe file.
- JavaSE-1.8 or higher.
Users are presented with a menu offering some control over how to programme will function. Options include:
- Add Student
- Delete Student
- List all students
- Search for Student by ID
- Search for Students By First Name
- Get Total Number of Students
- Save Database
- Load Database
- About this Project
- Quit
As the project has already been compiled into an executable file, all you need to do is to:
- download the project and run Student-Manager.exe
- all other files are not required except for the db folder.
The db folder contains four demonstration databases for loading and testing. When prompted to load a database, use the following as an example of loading a database:
C:\Users\Michael\Desktop\db\100000-students.db
If you prefer to compile the source code yourself this section is for you.
Run the following command inside the src folder to compile into .class
files.
javac ie/gmit/dip/*.java
- JavaSE-1.8 or higher.
Download the project and run the following command from inside the bin
directory (or the folder with the .class
) files to create a JAR file.
jar -cf Student-Manager.jar ie/gmit/dip/*.class
Navigate to the directory in which the JAR file is located (bin folder) and then run the following:
java -cp ./Student-Manager.jar ie.gmit.dip.Runner