Forums Register Login

Problem with ClassLoader

+Pie Number of slices to send: Send
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
+Pie Number of slices to send: Send
Problem solved - I found the solution in this forum
A clever fellow wrote this.
web page
+Pie Number of slices to send: Send
That's just where I was about to send you
I'd appreciate it if you pronounced my name correctly. Pinhead, with a silent "H". Petite ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 1222 times.
Similar Threads
packages --- Not allowing me to access public class from the same package...
JDBC error
Sessions in JSF
accessing one class from other
JSTL for loop error
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 05:26:34.