mysql connector in linux - java.lang.ClassNotFoundException: com.mysql.jdbc
I use mysql-connector-java-5.0.6-bin.jar and j2eesdk-1_4_03-linux.bin.
I created a new directory: /usr/java/javaclass.
The CLASSPATH variable point to this directory, where I copied the mysql-connector-java-5.0.6-bin.jar file.
In the same directory I have the .java file that I test with.
I compile without error /usr/java/jdk/bin/javac Jdbc11.java.
And I try to run, but with errors: /usr/java/jdk/bin/java -cp . Jdbc11
The complete error is:
java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:164)
at Jdbc11.main(Jdbc11.java:8)
Where is the problem?
Thank you.

