Desktop application

Library Management System

A Java Swing desktop application for managing library operations โ€” books, staff, authentication, and admin controls โ€” backed by MySQL.

Features

User authentication

Secure login for authorized access to the system.

Book management

View, add, and remove books from the library inventory.

Staff management

View staff details and add or remove staff members.

Admin panel

Edit administrator credentials and system settings.

Dashboard

Central hub for all library operations.

MySQL storage

Persistent data with JDBC and MySQL Connector/J.

Technology stack

Run locally

This is a desktop app โ€” it does not run in the browser. Clone the repo, set up MySQL, then compile and run from your machine.

  1. Install JDK 8+ and MySQL 5.7+
  2. Create library_db and tables (see README in the repository)
  3. Update database credentials in java/Dashboard.java
  4. Compile and run:
# macOS / Linux
javac -cp "lib/*:java" java/*.java -d build/classes
java -cp "lib/*:build/classes" LoginPage

Default login: admin / admin123 (change after first use)