The E-HealthCare Management System is a Java-based desktop application designed to simplify hospital operations for Admins, Doctors, and Patients.
It integrates database management, appointment booking, and email verification into a user-friendly GUI, ensuring smooth healthcare workflow.
- Manage doctors, patients, and appointments
- Edit or remove any user
- Add new appointments
- Update hospital records
- Register and manage their profile
- View and edit assigned appointments
- Access personal dashboard
- Register and log in
- Book appointments
- Pay for appointments
- Edit profile and change password
- Two-step email verification for secure signup
- Signup Selection Page – User chooses to register as Doctor, Patient, or Admin.
- Registration & Verification – Email verification using javax.mail and 2-step authentication.
- Login Page – Secure authentication with database validation.
- Role-Specific Dashboard – Access features based on user role.
- Database Connection – All user data, appointments, and transactions are stored in MySQL via
mysql-connector-java. - GUI – Designed using Java Swing (javax) with manual layout (x, y coordinates).
- Supporting Tools – GUI planning via draw.io, local DB management via XAMPP.
- Java SE (Core Java)
- Java Swing (javax) for GUI
- MySQL with XAMPP
- JavaMail API for SMTP email verification
- jcalendar-1.4.jar for date picking
- mysql-connector-java-8.0.29.jar for DB connectivity
- Download Java JDK (version 8 or later) from:
🔗 https://www.oracle.com/java/technologies/javase-downloads.html - Install the JDK by following the on-screen instructions.
- Press Windows + S → Search for "Environment Variables" → Open "Edit the system environment variables".
- Click Environment Variables….
- Under System variables, select Path → Edit → New.
- Add the JDK
binpath (example): C:\Program Files\Java\jdk-17\bin
- Install XAMPP (MySQL + Apache)
- Required
.jarfiles (place them in the project folder):jcalendar-1.4.jarjavax.mail.jarmysql-connector-java-8.0.29.jar
- Start XAMPP and enable Apache and MySQL.
- Restoring
ibdata1(Important for Database to Work)
⚠ Warning: Without this, MySQL will not recognize the tables.- Stop MySQL service from XAMPP.
- Navigate to your MySQL data folder (e.g.
C:\xampp\mysql\data). - Backup your existing
ibdata1(rename or move it). - Place the provided
ibdata1file into thedatafolder. - Ensure the corresponding database folder (with
.frmand.ibdfiles) is also indata. - Restart MySQL in XAMPP.
- Open phpMyAdmin to verify that the database tables are loaded.
- Update your Java code's DB connection details if needed.
- Open Command Prompt.
- Navigate to the project folder and type cmd in the address bar or use cd command to go to the project folder:
cd path\to\project
- Compile all the main files
For example, for Loginpage.java
javac Loginpage.java
- Run the application using Loginpage.java
java Loginpage
Authors:
- Md Tamjid Hossain
- Wasif Asad Alvi
📧 Email: tamjid621@gmail.com