"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
In general you'll do better if you copy-and-paste compiler errors and
exception messages and the like literally, although in this case the message
is clear enough to relax the advice a tad.
Leonard Milcin wrote:
> You don't have the *jar* file in the classpath. Your program will compile
> well without the driver because it's loaded by name.
For how to set the classpath:
<http://java.sun.com/javase/6/docs/technotes/tools/solaris/classpath.html>
--
Lew