This project presents a simple Library Management System built using Java. The system is designed to manage library accounts, books, and devices. Users can create accounts and borrow or return books and devices.
The project applies Object-Oriented Programming concepts such as classes, constructors, methods, setters, and getters. It also includes a JDBC connection file that connects the Java application to a MySQL database.
- Course: CS2132
- Tools: Java, OOP, JDBC, MySQL, UML Class Diagram
- Project Type: Library Management System
- Main Classes: Accounts, Books, Device, Library, myJDBC
- Main Features: Account management, book checkout, book return, device records
- OOP Concepts: Classes, constructors, setters, getters, and methods
- Database Connection: Java connected to MySQL using JDBC
- Database Name: librarypro
- Main Goal: Build a Java-based library system for managing users, books, and borrowable devices
The system is designed for students, library employees, visitors, and anyone interested in borrowing a book or a device from the library. The application allows users to create accounts, check out books or devices, and return borrowed items.
- Create library accounts
- Manage account information
- Manage book records
- Manage device records
- Check out books
- Return books
- Represent borrowable devices
- Connect Java with a MySQL database using JDBC
accounts.java— Represents user account information.books.java— Represents book information and includes book checkout and return functionality.device.java— Represents borrowable library devices.library.java— Main library system class.myJDBC.java— Handles the JDBC connection between Java and MySQL.
The project includes a JDBC connection to a MySQL database named librarypro. The JDBC file is used to connect the Java application to the database and test whether the connection works successfully.
UML.md— Contains the UML class diagram or UML-related documentation.project_summary_template.docx— Final project report with project summary, system design, UML diagrams, and screenshots.WhatsApp Image 2023-12-11 at 23.49.52_21641587.jpg— Project-related image or screenshot.
- Open the project in a Java IDE such as IntelliJ IDEA, Eclipse, or VS Code.
- Make sure Java is installed.
- Make sure MySQL is installed and running.
- Create or import the required database named
librarypro. - Add the MySQL Connector/J library to the project.
- Update the database connection settings in
myJDBC.javaif needed. - Run the main Java file, usually
library.java.
This project demonstrates a Java-based library management system using Object-Oriented Programming. It focuses on organizing users, books, and devices through classes and methods, while also showing how Java can connect to a MySQL database using JDBC.
Sana Rahmani
Rama Alkusair
Layan Albar
Effat University – CS2132