java.lang.NoClassDefFoundError - help please

java.lang.NoClassDefFoundError: org/mlc/swing/layout/LayoutConstraintsManager

at src.Job.viewJob(Job.java:70)

at src.JobViewer.addContent(JobViewer.java:108)

at src.JobViewer.setup(JobViewer.java:53)

at src.JobViewer.<init>(JobViewer.java:42)

at src.MainMenu$1.actionPerformed(MainMenu.java:72)

at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)

at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Unknow

n Source)

at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)

at javax.swing.DefaultButtonModel.setPressed(Unknown Source)

at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Sour

ce)

at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)

at java.awt.Component.processMouseEvent(Unknown Source)

at java.awt.Component.processEvent(Unknown Source)

at java.awt.Container.processEvent(Unknown Source)

at java.awt.Component.dispatchEventImpl(Unknown Source)

at java.awt.Container.dispatchEventImpl(Unknown Source)

at java.awt.Component.dispatchEvent(Unknown Source)

at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)

at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)

at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)

at java.awt.Container.dispatchEventImpl(Unknown Source)

at java.awt.Window.dispatchEventImpl(Unknown Source)

at java.awt.Component.dispatchEvent(Unknown Source)

at java.awt.EventQueue.dispatchEvent(Unknown Source)

at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)

at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)

at java.awt.EventDispatchThread.pumpEvents(Unknown Source)

at java.awt.EventDispatchThread.pumpEvents(Unknown Source)

at java.awt.EventDispatchThread.run(Unknown Source)

I am useless with these errors (classdeffounderror). I am working in eclipse and using this:

InputStream constraints = this.getClass().getResourceAsStream("form.xml");

org.mlc.swing.layout.LayoutConstraintsManager layoutConstraintsManager = org.mlc.swing.layout.LayoutConstraintsManager.getLayoutConstraintsManager(constraints);

LayoutManager layout = layoutConstraintsManager.createLayout("panel", job);

job.setLayout(layout);

The import is working fine when running in eclipse but not when i run an exported jar.

Please help.

[2582 byte] By [SiForstera] at [2007-11-27 11:13:25]
# 1

Hi again,

You have used a WYSIWYG tool to build the GUI.

Take a look at:

http://formlayoutmaker.sourceforge.net/maven/project-info.html

and http://formlayoutmaker.sourceforge.net/maven/jdepend-report.html

You should have included JGoodies.jar or something like that in your classpath

(to be added to Class-Path manifest entry)

hope that helps

java_2006a at 2007-7-29 14:00:47 > top of Java-index,Desktop,Runtime Environment...