[opencms-dev] com.mysql.jdbc.Driver ClassNotFoundException
Christoph P. Kukulies
kuku at physik.rwth-aachen.de
Sun May 6 09:21:39 CEST 2007
Though not quite OpenCms centric I allow myself to put my
question here:
I'm trying to move a PHPBB2 forum to mvnForum using a java program
from
http://www.javareference.com/downloads/viewdownload.jsp?id=00000032
When executing the java command I'm getting
Unable to load driver.
java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
at java.net.URLClassLoader$1.run(URLClassLoader.java:199)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)
at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:141)
at PHPBBToMvnForum.<init>(PHPBBToMvnForum.java:95)
at PHPBBToMvnForum.main(PHPBBToMvnForum.java:255)
Exception in thread "main" java.sql.SQLException: No suitable driver
at java.sql.DriverManager.getConnection(DriverManager.java:532)
at java.sql.DriverManager.getConnection(DriverManager.java:171)
at PHPBBToMvnForum.<init>(PHPBBToMvnForum.java:103)
at PHPBBToMvnForum.main(PHPBBToMvnForum.java:255)
The system is a Unix system (FreeBSD) and java is jsdk 1.4.2, an older
MySQL (3.28).
I tried java -cp /usr/local/share/java/classes/mysql-connector-java.jar
as well.
--
Chris Christoph P. U. Kukulies kukulies (at) rwth-aachen.de
More information about the opencms-dev
mailing list