java.lang.ClassNotFoundException: com.mysql.jdbc.Driver

Pentaho BI Platform Tracking | Sridhar Dhanapalan | 8 years ago
  1. 0

    Schema Workbench 3.0.4 requires the working directory set to be the directory where it is installed. If you do not, you get a ClassNotFoundException error on the database driver when trying to make a DB connection. The terminal output is: 15:22:05,513 ERROR [JDBCMetaData] Database connection exception : ClassNotFoundException : com.mysql.jdbc.Driver 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 mondrian.gui.JDBCMetaData.initConnection(JDBCMetaData.java:105) at mondrian.gui.JDBCMetaData.<init>(JDBCMetaData.java:75) at mondrian.gui.Workbench.resetWorkbench(Workbench.java:1562) at mondrian.gui.Workbench.toolbarPreferencesButtonActionPerformed(Workbench.java:1037) at mondrian.gui.Workbench.access$800(Workbench.java:59) at mondrian.gui.Workbench$23.actionPerformed(Workbench.java:551) at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849) at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2169) at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420) at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258) at javax.swing.AbstractButton.doClick(AbstractButton.java:302) at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1051) at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1092) at java.awt.Component.processMouseEvent(Component.java:5517) at javax.swing.JComponent.processMouseEvent(JComponent.java:3135) at java.awt.Component.processEvent(Component.java:5282) at java.awt.Container.processEvent(Container.java:1966) at java.awt.Component.dispatchEventImpl(Component.java:3984) at java.awt.Container.dispatchEventImpl(Container.java:2024) at java.awt.Component.dispatchEvent(Component.java:3819) at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212) at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892) at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822) at java.awt.Container.dispatchEventImpl(Container.java:2010) at java.awt.Window.dispatchEventImpl(Window.java:1791) at java.awt.Component.dispatchEvent(Component.java:3819) at java.awt.EventQueue.dispatchEvent(EventQueue.java:463) at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149) at java.awt.EventDispatchThread.run(EventDispatchThread.java:110) The solution is to cd into the directory first: $ cd /opt/pentaho/workbench $ sh workbench.sh More detail at http://wiki.bizcubed.com.au:8080/xwiki/bin/view/Pentaho+Tutorial/Troubleshooting+GUI+tools#HCheckworkingdirectory This is similar to PMD-458 and PRD-1034.

    Pentaho BI Platform Tracking | 8 years ago | Sridhar Dhanapalan
    java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
  2. 0

    Schema Workbench 3.0.4 requires the working directory set to be the directory where it is installed. If you do not, you get a ClassNotFoundException error on the database driver when trying to make a DB connection. The terminal output is: 15:22:05,513 ERROR [JDBCMetaData] Database connection exception : ClassNotFoundException : com.mysql.jdbc.Driver 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 mondrian.gui.JDBCMetaData.initConnection(JDBCMetaData.java:105) at mondrian.gui.JDBCMetaData.<init>(JDBCMetaData.java:75) at mondrian.gui.Workbench.resetWorkbench(Workbench.java:1562) at mondrian.gui.Workbench.toolbarPreferencesButtonActionPerformed(Workbench.java:1037) at mondrian.gui.Workbench.access$800(Workbench.java:59) at mondrian.gui.Workbench$23.actionPerformed(Workbench.java:551) at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849) at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2169) at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420) at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258) at javax.swing.AbstractButton.doClick(AbstractButton.java:302) at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1051) at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1092) at java.awt.Component.processMouseEvent(Component.java:5517) at javax.swing.JComponent.processMouseEvent(JComponent.java:3135) at java.awt.Component.processEvent(Component.java:5282) at java.awt.Container.processEvent(Container.java:1966) at java.awt.Component.dispatchEventImpl(Component.java:3984) at java.awt.Container.dispatchEventImpl(Container.java:2024) at java.awt.Component.dispatchEvent(Component.java:3819) at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212) at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892) at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822) at java.awt.Container.dispatchEventImpl(Container.java:2010) at java.awt.Window.dispatchEventImpl(Window.java:1791) at java.awt.Component.dispatchEvent(Component.java:3819) at java.awt.EventQueue.dispatchEvent(EventQueue.java:463) at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149) at java.awt.EventDispatchThread.run(EventDispatchThread.java:110) The solution is to cd into the directory first: $ cd /opt/pentaho/workbench $ sh workbench.sh More detail at http://wiki.bizcubed.com.au:8080/xwiki/bin/view/Pentaho+Tutorial/Troubleshooting+GUI+tools#HCheckworkingdirectory This is similar to PMD-458 and PRD-1034.

    Pentaho BI Platform Tracking | 8 years ago | Sridhar Dhanapalan
    java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
  3. 0

    Using JDBC to connect to MySQL from Java Program

    java-samples.com | 3 months ago
    java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    conectar a la base de datos Mysql

    Google Groups | 1 decade ago | harry
    java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
  6. 0

    Using JDBC to connect to MySQL from Java Program

    java-samples.com | 1 year ago
    java.lang.ClassNotFoundException: com.mysql.jdbc.Driver

  1. gehel 1 times, last 6 days ago
  2. davidvanlaatum 3 times, last 6 days ago
  3. danleyb2Interintel 1 times, last 1 week ago
  4. malhobayyeb 3 times, last 2 weeks ago
  5. Kialandei 1 times, last 2 weeks ago
49 more registered users
46 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.ClassNotFoundException

    com.mysql.jdbc.Driver

    at java.net.URLClassLoader$1.run()
  2. Java RT
    Class.forName
    1. java.net.URLClassLoader$1.run(URLClassLoader.java:200)
    2. java.security.AccessController.doPrivileged(Native Method)
    3. java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    4. java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    5. sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
    6. java.lang.ClassLoader.loadClass(ClassLoader.java:251)
    7. java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
    8. java.lang.Class.forName0(Native Method)
    9. java.lang.Class.forName(Class.java:164)
    9 frames
  3. mondrian.gui
    Workbench$23.actionPerformed
    1. mondrian.gui.JDBCMetaData.initConnection(JDBCMetaData.java:105)
    2. mondrian.gui.JDBCMetaData.<init>(JDBCMetaData.java:75)
    3. mondrian.gui.Workbench.resetWorkbench(Workbench.java:1562)
    4. mondrian.gui.Workbench.toolbarPreferencesButtonActionPerformed(Workbench.java:1037)
    5. mondrian.gui.Workbench.access$800(Workbench.java:59)
    6. mondrian.gui.Workbench$23.actionPerformed(Workbench.java:551)
    6 frames
  4. Java RT
    EventDispatchThread.run
    1. javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849)
    2. javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2169)
    3. javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
    4. javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
    5. javax.swing.AbstractButton.doClick(AbstractButton.java:302)
    6. javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1051)
    7. javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1092)
    8. java.awt.Component.processMouseEvent(Component.java:5517)
    9. javax.swing.JComponent.processMouseEvent(JComponent.java:3135)
    10. java.awt.Component.processEvent(Component.java:5282)
    11. java.awt.Container.processEvent(Container.java:1966)
    12. java.awt.Component.dispatchEventImpl(Component.java:3984)
    13. java.awt.Container.dispatchEventImpl(Container.java:2024)
    14. java.awt.Component.dispatchEvent(Component.java:3819)
    15. java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
    16. java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)
    17. java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
    18. java.awt.Container.dispatchEventImpl(Container.java:2010)
    19. java.awt.Window.dispatchEventImpl(Window.java:1791)
    20. java.awt.Component.dispatchEvent(Component.java:3819)
    21. java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
    22. java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
    23. java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
    24. java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
    25. java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
    26. java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
    26 frames