A comprehensive desktop application designed to streamline the management of library resources. Built with Java Swing and MySQL, this system handles book inventory, student records, and the entire circulation process (issuing and returning books) with an intuitive graphical user interface.
- Admin Dashboard: Centralized control panel for quick navigation.
- Secure Login: Authentication system for administrators.
- Book Management:
- Add Books: Register new books with details (ID, Category, Name, Author, Copies).
- Stock Tracking: View real-time availability of books.
- Student Management:
- Registration: Add new students to the system.
- Records: View student details, contact info, and borrowing history.
- Circulation System:
- Issue Book: Assign books to students with automatic date tracking.
- Return Book: Process returns and automatically update inventory counts.
- Smart Validation: Prevents issuing out-of-stock books or incorrect returns.
- Language: Java (JDK 24)
- GUI Framework: Java Swing
- Database: MySQL 8.0
- IDE: NetBeans (Recommended)
- Ensure MySQL Server is installed and running.
- Create a database named
library2. - Import the schema file located at
databaseOfLibrary/library2.sql.mysql -u root -p library2 < databaseOfLibrary/library2.sql - Update the database credentials in
src/db.propertiesif your configuration differs:db.url=jdbc:mysql://localhost:3306/library2 db.user=root db.password=YOUR_PASSWORD
Ensure the following JAR files (included in the lib/ folder) are in your classpath:
mysql-connector-j-9.4.0.jar(MySQL Driver)jcalendar-1.4.jar(Date Chooser)RojeruSan.parte1.jar(UI Components)RSCalendar.jar
Using NetBeans (Recommended):
- Open the project in NetBeans.
- Right-click the project name > Properties > Libraries to verify the JAR paths are correct.
- Right-click > Clean and Build.
- Run the project. The entry point is
Loading1.java.
Using Command Line:
# Compile
javac -cp "lib/*;src" -d build/classes src/*.java
# Run
java -cp "lib/*;build/classes" Loading1src/: Contains all Java source code and Swing forms.lib/: Contains external JAR libraries required for the project.databaseOfLibrary/: Contains thelibrary2.sqldatabase dump file.icon/&image/: Resources for UI assets.
Ram Baranwal