Re: my sql connectivity



focode wrote:
i have downloaded "mysql-connector-java-5.1.6.tar" and the related
connecter for java and set the class path , my programa compiled well
but it reported error class not found exception then preceded
by ...................

"java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)"

i want to learn the connectivity with mysql , can any one suggest a
simple tutorial

thanks

You don't have the *jar* file in the classpath. Your program will compile
well without the driver because it's loaded by name.

Best regards,
Leonard

--
Simplicity is the ultimate sophistication.
-- Leonardo da Vinci
.



Relevant Pages

  • my sql connectivity
    ... connecter for java and set the class path, ... but it reported error class not found exception then preceded ...
    (comp.lang.java.programmer)
  • Re: my sql connectivity
    ... connecter for java and set the class path, ... but it reported error class not found exception then preceded ... exception messages and the like literally, although in this case the message is clear enough to relax the advice a tad. ...
    (comp.lang.java.programmer)