Women in Technology

Hear us Roar



Article:
  Internals of Java Class Loading
Subject:   Class not found exception
Date:   2006-05-06 00:38:32
From:   ClassLoader
I have a swing application which runs perfectly when i run it from console .but when i try to create a executable jar it gives me the following error .



E:\Test\PrjElda>java -jar psae.jar
Exception in thread "AWT-EventQueue-0" java.lang.NoClassDefFoundError: org/postg
resql/Driver
at elda.DataBean.<init>(DataBean.java:30)
at elda.LoginWin.createButtonsAndLabels(LoginWin.java:88)
at elda.LoginWin.createAndShowGUI(LoginWin.java:62)
at elda.Elda_Main$1.run(Elda_Main.java:36)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchTh
read.java:234)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThre
ad.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)



Plz help me if you can as soon as possible ........