I have created a login screen but each time I test it, I get the following error message: java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
I know my database connection coding is correct because I have used it before and no errors are displayed. I tried adding the database driver through this Stack Overflow How to connect NetBeans to MySQL database? but the problem persists and I have also ensured the database was connected in the driver.
How do I get the driver to work?