Welcome to the Hospital Management Project! This guide will walk you through setting up and running the project.
The project folder contains two main directories:
database/: Contains the database script for setting up the required tables and data.Hospital Management Project/: The main project folder to be opened in NetBeans.
- Navigate to the
databasefolder. - Run the
projectData.sqlfile in your MySQL Workbench or a similar tool. - This script will:
- Create the required tables.
- Populate the database with some random sample data.
- Open NetBeans IDE.
- Select File > Open Project from the menu.
- Navigate to the
Hospital Management Projectfolder and open it.
If you encounter issues related to JDK 21, follow these steps:
- Remove any broken or problematic JDK 21 setup.
- Right-click on the project in NetBeans and select Properties.
- Navigate to the Libraries section.
- Set the Java platform to your preferred version (e.g.,
JDK 21). - Manage the compile-time libraries:
- Add necessary database JAR files (e.g., MySQL Connector/J).
- Remove any outdated or incompatible libraries.
- Perform a Clean and Build operation for the project.
Nested paths can sometimes cause issues while building the project. To resolve this:
- Move the project folder to a top-level directory, such as
C:\orD:\.
- After setting up the database and opening the project in NetBeans, locate the
Main.javafile in theMainpackage. - Right-click on the file and select Run File.
- Ensure that your MySQL service is running before executing the project.
- Keep the database configuration consistent with the project's database connection setup.
"Happy coding journey! Enjoy every line of code!"
