Bug 363 - Cannot run the application
Summary: Cannot run the application
Status: CONFIRMED
Alias: None
Product: Group 1 - Employee Leave management system
Classification: Unclassified
Component: Frontend (show other bugs)
Version: unspecified
Hardware: Macintosh Mac OS
: Highest major
Assignee: Ho Ka Chun
URL:
Depends on:
Blocks:
 
Reported: 2019-12-09 13:55 HKT by ibrahim
Modified: 2019-12-09 22:52 HKT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ibrahim 2019-12-09 13:55:42 HKT
Compiling and running the main.java is giving me the following console message with an error:

Backend started
Error: java.sql.SQLException: Access denied for user 'root'@'localhost' (using password: NO)
Frontend is starting at thread: 21

Steps to reproduce:
1. Select main.java
2. Run as Java application
Comment 1 ibrahim 2019-12-09 22:52:47 HKT
The problem is because you local database has access controls

Steps to solve:
1. Go to DBConnect.java in the Backend package
2. Search for the statement on line 21 for establishing connection
3. Enter your password after your username in double quotations