Database driver worked before a "clean" build

Before I accidentally did a clean build on my project, everything was working fine. My application uses a MySQL database driver to connect to my server. I accidentally did a clean build and it wiped out the added JAR file for the database driver. I went in an re-added the driver and now when it goes to connect to my database, I get:

Exception occurred during event dispatching:

java.lang.NoClassDefFoundError: org/aspectj/lang/Signature

at java.lang.Class.forName0(Native Method)

at java.lang.Class.forName(Class.java:169)

at Login.b_loginActionPerformed(Login.java:128)

at Login.access$000(Login.java:18)

at Login$1.actionPerformed(Login.java:92)

at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)

at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)

at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)

at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)

at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)

at java.awt.Component.processMouseEvent(Component.java:6038)

at javax.swing.JComponent.processMouseEvent(JComponent.java:3260)

at java.awt.Component.processEvent(Component.java:5803)

at java.awt.Container.processEvent(Container.java:2058)

at java.awt.Component.dispatchEventImpl(Component.java:4410)

at java.awt.Container.dispatchEventImpl(Container.java:2116)

at java.awt.Component.dispatchEvent(Component.java:4240)

at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4322)

at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3986)

at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3916)

at java.awt.Container.dispatchEventImpl(Container.java:2102)

at java.awt.Window.dispatchEventImpl(Window.java:2429)

at java.awt.Component.dispatchEvent(Component.java:4240)

at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)

at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)

at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)

at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:177)

at java.awt.Dialog$1.run(Dialog.java:1039)

at java.awt.Dialog$3.run(Dialog.java:1091)

at java.security.AccessController.doPrivileged(Native Method)

at java.awt.Dialog.show(Dialog.java:1089)

at java.awt.Component.show(Component.java:1419)

at java.awt.Component.setVisible(Component.java:1372)

at java.awt.Window.setVisible(Window.java:801)

at java.awt.Dialog.setVisible(Dialog.java:979)

at Login.showInDialog(Login.java:221)

at RegisterLogin.b_loginActionPerformed(RegisterLogin.java:117)

at RegisterLogin.access$100(RegisterLogin.java:15)

at RegisterLogin$2.actionPerformed(RegisterLogin.java:55)

at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)

at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)

at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)

at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)

at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)

at java.awt.Component.processMouseEvent(Component.java:6038)

at javax.swing.JComponent.processMouseEvent(JComponent.java:3260)

at java.awt.Component.processEvent(Component.java:5803)

at java.awt.Container.processEvent(Container.java:2058)

at java.awt.Component.dispatchEventImpl(Component.java:4410)

at java.awt.Container.dispatchEventImpl(Container.java:2116)

at java.awt.Component.dispatchEvent(Component.java:4240)

at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4322)

at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3986)

at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3916)

at java.awt.Container.dispatchEventImpl(Container.java:2102)

at java.awt.Window.dispatchEventImpl(Window.java:2429)

at java.awt.Component.dispatchEvent(Component.java:4240)

at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)

at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)

at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)

at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:177)

at java.awt.Dialog$1.run(Dialog.java:1039)

at java.awt.Dialog$3.run(Dialog.java:1091)

at java.security.AccessController.doPrivileged(Native Method)

at java.awt.Dialog.show(Dialog.java:1089)

at java.awt.Component.show(Component.java:1419)

at java.awt.Component.setVisible(Component.java:1372)

at java.awt.Window.setVisible(Window.java:801)

at java.awt.Dialog.setVisible(Dialog.java:979)

at RegisterLogin.showInDialog(RegisterLogin.java:146)

at HubEvals.<init>(HubEvals.java:27)

at HubEvals$5.run(HubEvals.java:206)

at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)

at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)

at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)

at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)

at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)

at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)

at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)

at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)

The line it points to in Login.java is:

ResultSet rs =null;

String driverName ="com.mysql.jdbc.Driver";// MySQL MM JDBC driver

Class.forName (driverName);// <<< this line

Why won't it work now since I re-added the database driver?

[6285 byte] By [tristanlee85a] at [2007-11-27 6:46:09]
# 1
Google.According to the following you are missing a jar in your class path. http://forums.mysql.com/read.php?39,22579,48223#msg-48223
jschella at 2007-7-12 18:18:32 > top of Java-index,Java Essentials,Java Programming...
# 2
That's the problem though. The JAR file is in my class path. I followed the exact same proceedure as when I first set it up, but now it isn't working.
tristanlee85a at 2007-7-12 18:18:32 > top of Java-index,Java Essentials,Java Programming...
# 3
Most likely you were using NetBeans and you had your jar file in the build folder of your project. Either copy that jar file there again or add the jar file from your drives to your project from the IDE.
Jamwaa at 2007-7-12 18:18:32 > top of Java-index,Java Essentials,Java Programming...
# 4

> That's the problem though. The JAR file is in my

> class path. I followed the exact same proceedure as

> when I first set it up, but now it isn't working.

The most likely reason is that you think it is in your class path when it actually isn't.

You can print the System properties to determine what class path the java app is using. I am not sure that completely eliminates possibilities however as the Sun VM, at least in the past, would stop looking on the class path if any problems were encountered (like a missing directory in the middle.)

jschella at 2007-7-12 18:18:32 > top of Java-index,Java Essentials,Java Programming...