-
Download and install Eclipse IDE for Enterprise Java and Web Developers
- Link: https://www.eclipse.org/downloads/packages/
- Choose "Eclipse IDE for Enterprise Java and Web Developers"
-
Download and install MySQL
- Link: https://dev.mysql.com/downloads/installer/
- Choose "Developer Default" installation
- Set root password as "root"
- Open Eclipse
- Go to File -> Import
- Select "Maven -> Existing Maven Projects"
- Browse to the project folder
- Click "Finish"
- Open MySQL Workbench (installed with MySQL)
- Click on the local connection
- Enter password: root
- Click on "Create a new SQL tab"
- Copy and paste the contents of
src/main/resources/schema.sql - Click the lightning bolt icon to execute
- Right-click on the project in Eclipse
- Select "Run As -> Run on Server"
- Choose "Tomcat v10.0" (it comes with Eclipse)
- Click "Finish"
- Open your web browser
- Go to: http://localhost:8080/secure-voting-system
- Login with:
- Username: admin
- Password: admin123
- Make sure MySQL is running
- Check if the database is created:
- Open MySQL Workbench
- Run:
SHOW DATABASES; - You should see
secure_voting_system
- Check the Console view in Eclipse
- Make sure Tomcat is properly configured
- Try cleaning and rebuilding the project:
- Right-click project -> Run As -> Maven clean
- Right-click project -> Run As -> Maven install
- Check if Tomcat is running (look for the server in Eclipse's Servers view)
- Try accessing: http://localhost:8080
- Make sure no other application is using port 8080