Hi
I've been searching this forum for a solution to my problem, but didn't find any.
I want to load a class from a jar file, and somehow I've succeded,
but I can't use the loaded class, it's a driver for a MySQL db.
I'm loading the class in method loadDriver().
and receiving an error in method dbConnection( String databaseURL, String username, String password)
The error is "No suitable driver"
How can I load the driver in a way that gives some benefit?
I would really appreciate some help on this.
See the code below.
Regards
Carsten
I've been searching this forum for a solution to my problem, but didn't find any.
I want to load a class from a jar file, and somehow I've succeded,
but I can't use the loaded class, it's a driver for a MySQL db.
I'm loading the class in method loadDriver().
and receiving an error in method dbConnection( String databaseURL, String username, String password)
The error is "No suitable driver"
How can I load the driver in a way that gives some benefit?
I would really appreciate some help on this.
See the code below.
Regards
Carsten