Re: jdk 1.1.8 & mysql

From: Ingo Fischenich <fischenich(at)guug.de>
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: org.gjit.mm.mysql.DriverSQLException:
> No suitable driver
> java.lang.NullPointerException:
> at Test.DBText(Test.java:47)
> at Test.main(Test.java:19)
>
> 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("org.gjt.mm.mysql.Driver"), 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 ...

          ingo

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

search this site