After googling the solution, most call for importing the jar file into the project library. Problem is, I've already added the file. I've even tried the alternative: adding the Netbeans library. Both don't work.
It just doesn't recognize "com.mysql.jdbc.Driver".
If it helps I'm trying to connect to XAMMP MySQL.