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 77532 - Jar files from wrapped .jar manifest should be added as dependencies
Summary: Jar files from wrapped .jar manifest should be added as dependencies
Status: RESOLVED WONTFIX
Alias: None
Product: apisupport
Classification: Unclassified
Component: Project (show other bugs)
Version: 5.x
Hardware: All All
: P4 blocker (vote)
Assignee: Martin Kozeny
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-06-07 15:41 UTC by Jaromir Uhrik
Modified: 2014-07-09 21:20 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments
Exception stack attached... (2.18 KB, text/plain)
2006-06-07 15:42 UTC, Jaromir Uhrik
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jaromir Uhrik 2006-06-07 15:41:56 UTC
[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.
Comment 1 Jaromir Uhrik 2006-06-07 15:42:58 UTC
Created attachment 30865 [details]
Exception stack attached...
Comment 2 Jesse Glick 2006-06-09 00:38:59 UTC
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.
Comment 3 Martin Kozeny 2014-01-09 14:26:49 UTC
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.
Comment 4 markiewb 2014-07-09 21:20:16 UTC
(In reply to Martin Kozeny from comment #3)
>  Closing as WONTFIX.

-> 
NOW: Resolved wontfix 
WAS: Resolved fixed