Topic: on Linux runjob.sh is giving java.lang.ClassNotFoundException: sun.jdbc.odbc.JdbcOdbcDriver
on Linux runjob.sh is giving java.lang.ClassNotFoundException: sun.jdbc.odbc.JdbcOdbcDriver
on Linux runjob.sh is giving java.lang.ClassNotFoundException: sun.jdbc.odbc.JdbcOdbcDriver error. I do have mysql-driver.jar in classpath.
Any idea why it is giving this error?
Exception in thread "main" java.lang.ClassNotFoundException: sun.jdbc.odbc.JdbcOdbcDriver
at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:334)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:186)
at dk.eobjects.datacleaner.gui.model.DatabaseDriver.loadDriver(DatabaseDriver.java:76)
at dk.eobjects.datacleaner.gui.DataCleanerCli.initialize(DataCleanerCli.java:198)
at dk.eobjects.datacleaner.gui.DataCleanerCli.main(DataCleanerCli.java:278)
Any idea why it is giving this error?
Exception in thread "main" java.lang.ClassNotFoundException: sun.jdbc.odbc.JdbcOdbcDriver
at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:334)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:186)
at dk.eobjects.datacleaner.gui.model.DatabaseDriver.loadDriver(DatabaseDriver.java:76)
at dk.eobjects.datacleaner.gui.DataCleanerCli.initialize(DataCleanerCli.java:198)
at dk.eobjects.datacleaner.gui.DataCleanerCli.main(DataCleanerCli.java:278)
Hi tech2sh,
This sounds like a problem occurring because you're not using Sun's Java Virtual Machine (JVM). I honestly don't know how DC will behave in terms of UI on such a JVM, so I would recommend that you install and configure a Sun JVM as your default Java runtime environment.
But for your concrete issue there is also a workaround. Open the file "datacleaner-config.xml" and remove this element:
This sounds like a problem occurring because you're not using Sun's Java Virtual Machine (JVM). I honestly don't know how DC will behave in terms of UI on such a JVM, so I would recommend that you install and configure a Sun JVM as your default Java runtime environment.
But for your concrete issue there is also a workaround. Open the file "datacleaner-config.xml" and remove this element:
<bean class="dk.eobjects.datacleaner.gui.model.DatabaseDriver">Let me know how it works.
<property name="name" value="Sun JDBC-ODBC bridge driver" />
<property name="driverClass" value="sun.jdbc.odbc.JdbcOdbcDriver" />
</bean>
Log in by clicking the login link at the top of the screen
Go back to forum.


