Re: jdk 1.1.8 & mysql

From: Ingo Fischenich <fischenich(at)>
Date: 28 Apr 2000 17:52:55 +0200

Hi Stephan,

> im zusammenhang mit einer mysql datenbank und
> einem kleinen javaprogramm stosse ich immer auf
> folgende fehlermeldung:
> Exception:
> No suitable driver
> java.lang.NullPointerException:
> at Test.DBText(
> at Test.main(
> Den classpath setze ich in rc.conf.local....

Chapter 4. Troubleshooting

This chapter includes solutions and workarounds for problems you might
encounter while using MM.MySQL.

No Suitable Driver

Occasionally you will get a SQLException thrown on the
DriverManager.getConnection() method that has the message "No Suitable Driver".
This almost always means that the MM.MySQL driver was never loaded, or the JDBC
URL doesn't start with "jdbc:mysql://". Make sure that you have called
newInstance() on Class.forName(""), to work around some
broken JVMs, and that the MM.MySQL classes are available in the CLASSPATH of
your application or applet.

Ansonsten wäre vielleicht ein kleiner Codeauszug interessant ...


To Unsubscribe: send mail to majordomo(at)
with "unsubscribe de-bsd-questions" in the body of the message
Received on Fri 28 Apr 2000 - 17:56:03 CEST

search this site