I don't know if this helps, but with modern JDBC drivers, you don't have to use Class.forName(...) Try just taking that line out.
Also, is the entire error message just com.mysql.jdbc.Driver? If not, please post the entire error message and the context you got it in (executing from the command line or a GUI desktop, which one, etc.)
The fact that you're getting this error from two separate launch programs makes me wonder if there isn't something in the Java source itself that's the problem.
All things are lawful, but not all things are profitable.
posted 2 years ago
It's Okay! I've found another solution.
After some intensive research in some other forums, I discovered that it looks best to develop java desktop application that uses a database, with SQLite.
So I've currently switched my database from mysql to sqlite.