This project is a Bank Management System developed using JSP and Servlets. It includes features like account management, transaction handling, and user authentication. The project is designed to run on the NetBeans 8.2 IDE with JDK 8, MySQL database, and XAMPP as the local server.
To set up the project, ensure the following tools and libraries are installed:
-
NetBeans 8.2 IDE
Download NetBeans 8.2 -
JDK 8
Download JDK 8 -
MySQL Connector (mysql-connector-j-8.4.0.jar)
Download MySQL Connector -
Servlet API (servlet-api-0.19.4.jar)
Download Servlet API -
XAMPP
Download XAMPP
Run the following commands to pull the GitHub repository:
# Clone the repository
git clone https://github.com/your-repository-url/jsp_prog1.git
# Navigate to the project directory
cd jsp_prog1Error: "Cannot find the MySQL driver class com.mysql.cj.jdbc.Driver"
Solution:
-
Add the
mysql-connector-j-8.4.0.jarto the project.- In NetBeans, right-click on your project > Properties > Libraries.
- Click
Add JAR/Folderand navigate to the location ofmysql-connector-j-8.4.0.jar. - Select and add it to the project.
-
Ensure your database configuration matches the connection URL in your code:
String url = "jdbc:mysql://localhost:3306/your_database_name"; String user = "root"; String password = "your_password";
-
Restart NetBeans after making these changes.
Error: "Cannot resolve symbol javax.servlet.*"
Solution:
-
Add the
servlet-api-0.19.4.jarto the project.- In NetBeans, right-click on your project > Properties > Libraries.
- Click
Add JAR/Folderand navigate to the location ofservlet-api-0.19.4.jar. - Select and add it to the project.
-
Ensure your project uses the correct JDK version (JDK 8).
- In NetBeans, right-click on your project > Properties > Build > Compile.
- Set the
Source/Binary FormattoJDK 8.
-
Clean and build the project:
- Go to
Run > Clean and Build Projectin NetBeans.
- Go to
-
Start the XAMPP control panel.
- Ensure the Apache and MySQL modules are running.
-
Create a new database for the project:
- Open
phpMyAdmin(http://localhost/phpmyadmin). - Create a new database and import the SQL file provided in the
databasefolder of this repository.
- Open
- Deploy the project to a server (e.g., Apache Tomcat bundled with NetBeans).
- Access the application in your browser:
http://localhost:8080/jsp_prog1