2 messages in com.mysql.lists.javaRe: error while using mm jdbc driver| From | Sent On | Attachments |
|---|---|---|
| Lawrence Riungu | 28 Nov 1999 17:49 | |
| Gaute Smaaland | 28 Nov 1999 23:54 |
| Subject: | Re: error while using mm jdbc driver![]() |
|---|---|
| From: | Gaute Smaaland (gs...@sevenmountains.no) |
| Date: | 11/28/1999 11:54:57 PM |
| List: | com.mysql.lists.java |
It seems like the mm-jar is missing from your classpath. do export CLASSPATH=$CLASSPATH:path/to/mysql_comp.jar
Lawrence Riungu wrote:
Hi,
I am trying to use the mm jdbc driver on a solaris box and I got the following
error
Unable to load driver.
java.lang.ClassNotFoundException: org.gjt.mm.mysql.Driver
at java.lang.Throwable.fillInStackTrace(Native Method)
at java.lang.Throwable.<init>(Throwable.java:94)
at java.lang.Exception.<init>(Exception.java:42)
at
java.lang.ClassNotFoundException.<init>(ClassNotFoundException.java:69)
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:191)
at java.lang.ClassLoader.loadClass(Compiled Code)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:275)
at java.lang.ClassLoader.loadClass(ClassLoader.java:238)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:125)
at LoadDriver.main(LoadDriver.java:15)
SQLException: No suitable driver
SQLState: 08001
VendorError: 0
I used the following command:
Class.forName("org.gjt.mm.mysql.Driver").newInstance();
What could I be doing wrong here
-thanks,
-Lawrence
--------------------------------------------------------------------- Please check "http://www.mysql.com/Manual_chapter/manual_toc.html" before posting. To request this thread, e-mail java...@lists.mysql.com
To unsubscribe, send a message to the address shown in the List-Unsubscribe header of this message. If you cannot see it, e-mail java...@lists.mysql.com instead.
-- Gaute Smaaland gs...@sevenmountains.no phone:+47 55526906




