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 166066 - Manifest in jar does not include all dependant jars
Summary: Manifest in jar does not include all dependant jars
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Project (show other bugs)
Version: 6.x
Hardware: All Windows XP
: P2 blocker (vote)
Assignee: Tomas Zezula
Depends on:
Reported: 2009-05-26 21:31 UTC by ddmiller
Modified: 2011-08-31 14:08 UTC (History)
0 users

See Also:
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
Description ddmiller 2009-05-26 21:31:47 UTC
I have a project that includes 4 or 5 other projects.  A couple of the other projects have dependencies on other 
outside jar such as the Apache Commons libraries.  My main project does not have a dependency on those jar files.  
When I build the jar file for my main project, the additional dependencies of the other project are not included in 
the Classpath entry in the manifest file, therefore, my application will not run by using the java -jar command.  Nor 
will it run just by double-clicking the jar file.

In order to make it build the manifest correctly, I have to add those dependent jar files to my project.  They should 
have been automatically added to the manifest by recursively looking at all the dependent jar files in my project and 
concatenating required files to the manifest jar classpath.
Comment 1 Milos Kleint 2009-06-03 07:18:56 UTC
I suppose you your project is a j2se project, reassigning appropriately, AFAIK the project dependencies in j2se ant
projects are not transitive.