This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
I'm trying to develop a module that uses a JPanel created by another project (and added to the palette), but when I run the module and try to open its window, I get the following exception: java.lang.NoClassDefFoundError: org/jdesktop/layout/GroupLayout at net.felipeal.ui.MailPanel.initComponents(MailPanel.java:43) at net.felipeal.ui.MailPanel.<init>(MailPanel.java:17) at net.felipel.mailplugin.MailWindowTopComponent.initComponents (MailWindowTopComponent.java:48) at net.felipel.mailplugin.MailWindowTopComponent.<init>(MailWindowTopComponent.java:34) at net.felipel.mailplugin.MailWindowTopComponent.getDefault(MailWindowTopComponent.java: 87) at net.felipel.mailplugin.MailWindowTopComponent.findInstance(MailWindowTopComponent.java: 99) at net.felipel.mailplugin.MailWindowAction.actionPerformed(MailWindowAction.java:21) at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1882) at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2202) at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420) at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258) at javax.swing.AbstractButton.doClick(AbstractButton.java:334) at apple.laf.ScreenMenuItem.actionPerformed(ScreenMenuItem.java:104) at java.awt.MenuItem.processActionEvent(MenuItem.java:597) at java.awt.MenuItem.processEvent(MenuItem.java:556) at java.awt.MenuComponent.dispatchEventImpl(MenuComponent.java:298) at java.awt.MenuComponent.dispatchEvent(MenuComponent.java:286) [catch] at java.awt.EventQueue.dispatchEvent(EventQueue.java:466) at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:275) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:196) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:190) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:182) at java.awt.EventDispatchThread.run(EventDispatchThread.java:110) I have already added the "Swing Layout Extensions Integration" module as dependency, but it didn't work. I have even tried to manually set the module's manifest (Class-Path: swing-layout-0.9.jar ), but it didn't work neither. I'm attaching a zip with both projects.
Created attachment 28755 [details] zip file with two projects, a library containg the JPanel (MailClient) and the module that causes the exception (MailPlugin)
Presumably you made a library wrapper for the j2seproject MailClient. So, you need to add the swing-layout module as a dep to that lib wrapper module, in addition to adding it to MailPlugin. Do not add Class-Path manually to anything.
Weird, I have added it as dependency to everything. But I tried again from scratch and it did work - I guess I was running the standalone module instead of the suite...
verified / closed