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.

Bug 72256 - Exception due to GroupLayout dependency
Summary: Exception due to GroupLayout dependency
Status: CLOSED INVALID
Alias: None
Product: apisupport
Classification: Unclassified
Component: Harness (show other bugs)
Version: 5.x
Hardware: Macintosh Mac OS X
: P1 blocker (vote)
Assignee: Jesse Glick
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-02-05 00:56 UTC by felipeal
Modified: 2006-02-14 17:57 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
zip file with two projects, a library containg the JPanel (MailClient) and the module that causes the exception (MailPlugin) (32.04 KB, application/x-compressed)
2006-02-05 00:58 UTC, felipeal
Details

Note You need to log in before you can comment on or make changes to this bug.
Description felipeal 2006-02-05 00:56:36 UTC
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.
Comment 1 felipeal 2006-02-05 00:58:02 UTC
Created attachment 28755 [details]
zip file with two projects, a library containg the JPanel (MailClient) and the module that causes the exception (MailPlugin)
Comment 2 Jesse Glick 2006-02-05 12:50:24 UTC
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.
Comment 3 felipeal 2006-02-06 03:01:25 UTC
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...
Comment 4 Marian Mirilovic 2006-02-06 09:49:10 UTC
verified / closed