A beautiful Java Swing desktop application for pharmacy inventory management with a modern pink-themed interface. ✨
- 📊 Interactive dashboard with medicine statistics.
- 💊 Medicine management with add, edit, and delete options.
- 📄 CSV export and 📑 PDF export for medicine inventory.
- 🔍 Live smart search by medicine name or category.
⚠️ Stock alerts for low and critical items.- 🗄️ SQLite database persistence for saved medicines.
- ☕ Install JDK 11 or higher.
Quick command (Windows):
winget install Microsoft.OpenJDK.11 - 📁 Open a terminal in this project folder.
- 🛠️ Compile:
javac -encoding UTF-8 *.java ▶️ Run:java PharmacyInventorySystem
If you want newly added, edited, or deleted medicines to be saved after closing the app, run with the SQLite JDBC dependency.
Required dependency:
- 🗄️ SQLite JDBC Driver:
org.xerial:sqlite-jdbc:3.42.0.0 - 📦 Local jar path used by this project:
lib/sqlite-jdbc-3.42.0.0.jar
🛠️ Compile with SQLite:
javac -cp ".;lib\sqlite-jdbc-3.42.0.0.jar" *.javajava -cp ".;lib\sqlite-jdbc-3.42.0.0.jar" PharmacyInventorySystem✅ This creates or uses pharmacy.db in the app folder. Medicines added through the app will be saved there and loaded again next time.
On Windows, you can also use:
build-app.bat
run-app.batYou can also use Maven because this project includes pom.xml with the SQLite dependency:
mvn compile exec:java📦 Build a runnable jar:
mvn clean packagejava -jar target/pharmacy-inventory-system.jarThe packaged jar includes the SQLite dependency automatically. This Maven option requires Maven to be installed.
- ☕ JDK 11 or higher
- 🗄️ SQLite JDBC Driver
3.42.0.0for database persistence
- ☕ Java SE
- 🖥️ Swing and AWT
- 🗄️ SQLite
Made with ❤️ by jayshree