Hi everyone,
I am using Ubuntu 7.10, and I have Java and MySQL installed with the command line as follow:
1. sudo apt-get install sun-java6-jdk
2. sudo apt-get install mysql-server
and my JAVA and MySQL are working well, but now I want create connection between JAVA application and MySQL using the JDBC API not using tomcat, but when I run my file, I get the following error:
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:276)
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:169)
at DB.dbConnect(getmySQLConnection.java:23)
at getmySQLConnection.main(getmySQLConnection.java:8)
it is about two days I am searchind on the web, plz some one help me