[Bluej-discuss] Creating extension GUI in netbeans.

Andrew Jones theplaymaker_ at hotmail.com
Mon May 21 03:59:44 BST 2007


I have created a gui for a BlueJ extension in the Netbeans IDE.  The BlueJ extension is written in eclipse and i have migrated the GUI from netbeans into eclipse.  Netbeans using a library swing-layout-1.0.jar that needs to be imported into the project in eclipse to run the gui.  The gui loads correctly from eclipse and i can create a .jar file in the bluej extension directory, but when the extension trys to load the gui from the tools menu i get this error.BlueJ run started: Mon May 21 14:52:02 NZST 2007BlueJ version 2.1.3    Java version 1.5.0_09Virtual machine: Java HotSpot(TM) Client VM 1.5.0_09-b03 (Sun Microsystems Inc.)Running on: Linux 2.6.18-1.2849.fc6 (i386)Java Home: /netfs/cosc/pkg/jdk1.5.0_09/jre----getExtensionsClass: jarFile=swing-layout-1.0.jar Manifest does not contain Main-Class attributePost on Tools menuException in thread "AWT-EventQueue-0" java.lang.NoClassDefFoundError: org/jdesktop/layout/GroupLayout$Group    at MenuBuilder$SimpleAction.actionPerformed(WetaExtension.java:217)    at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849)    at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2169)    at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)    at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)    at javax.swing.AbstractButton.doClick(AbstractButton.java:302)    at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1000)    at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1041)    at java.awt.Component.processMouseEvent(Component.java:5488)    at javax.swing.JComponent.processMouseEvent(JComponent.java:3126)    at java.awt.Component.processEvent(Component.java:5253)    at java.awt.Container.processEvent(Container.java:1966)    at java.awt.Component.dispatchEventImpl(Component.java:3955)    at java.awt.Container.dispatchEventImpl(Container.java:2024)    at java.awt.Component.dispatchEvent(Component.java:3803)    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)    at java.awt.Container.dispatchEventImpl(Container.java:2010)    at java.awt.Window.dispatchEventImpl(Window.java:1778)    at java.awt.Component.dispatchEvent(Component.java:3803)    at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)    at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.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)Does BlueJ need the swing-layout-1.0.jar library in its library folder?  Or should it already be in the bluej extension .jar file created by eclipse?ThanksAndrew
_________________________________________________________________
News, entertainment and everything you care about at Live.com. Get it now!
http://www.live.com/getstarted.aspx
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.bluej.org/pipermail/bluej-discuss/attachments/20070521/0b204d22/attachment.html


More information about the bluej-discuss mailing list