This project is built complete using core java. It is a GUI application for booking halls for seminars and lectures. It uses features of core java like Socket programming, Multi-threading, asynchronous callbacks and Java Swing is used to build the GUI. It is connected with the mysql database (JDBC).
- Eclipse IDE
- MySQL workbench installed (Download from here)
- Mysql connector jar file (Download from here)
- After installing the MySQL workbench, create a local connection and set a password.
- Import the database using the db folder which contains all the sql files.
- The database will be set up.
- In eclipse, import this project you just cloned. Now remember this application has a client-server architecture.
- So go to /src/test and run the file second.java.
- You will see a message on the console saying the server is started.
- Then go to /src/GUI and start the Client_GUI.java. It will start the client side GUI.
- The project is running. Try different menu options and see how it works.
Here are few screenshots of the project.
- Make sure all jar files have been added. Check the deployment assembly of the eclipse project and add mysql-connector in the list.
- If mysql is not connected, check the database name and password in MySQL workbench. Password="root" and database name="hotelmanagement".
- If you want to use different password and database name, goto /src/jdbcCode and open connect.java. Edit line 24.
Sarita Joshi TE Computer Engineering student at PICT