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.
[5.5 Beta] 1.Create new J2SE project 2.Add JDialog "MyDialog" to this project 3.Build this project - in dist folder .jar file is crated together with lib folder containing .jar with swing layout extension 4.Create new NetBeans Suite and add the "MyWrapper" module to this suite - create MyWrapper as a wrapper of .jar file from step 3 5.Create new action in MyWrapper module and add following code to its performAction method body: new MyDialog(new javax.swing.JFrame(),true).setVisible(true); 6.Run MyWrapper in NetBeans and invoke action that calls this method 7.Following exception appears (see attached exception log). The workaround is to add swing layout .jar file to module dependecies. This should be automatized - the way is to read dependency modules from manifest of the wrapped .jar file and add them as dependencies to wrapper.
Created attachment 30865 [details] Exception stack attached...
Could be handled somehow in wizard. Not sure how best to do this. Probably should create multiple lib wrapper projects with initial deps between them. Not trivial GUI. Furthermore, in this particular case swing-layout.jar should not be added to the suite at all! The lib wrapper module should be given a dep on the swing-layout module already in the platform. How to detect that (reliably), I don't know. Probably better for user to directly configure it in this case.
No plan to implement that, because there should be some kind of detection which classes are used from extra libraries and those libraries should be demanded by create wrapper wizard. Also detection of libraries used in the wrapped jar which are already included in platform and which not would be pretty peformance comsuming. Programmer should add missing libraries by hand. Closing as WONTFIX.
(In reply to Martin Kozeny from comment #3) > Closing as WONTFIX. -> NOW: Resolved wontfix WAS: Resolved fixed