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.
Summary: | ability to create various types of archives and to automatically include resources | ||
---|---|---|---|
Product: | java | Reporter: | jnash67 <jnash67> |
Component: | Project | Assignee: | Tomas Zezula <tzezula> |
Status: | NEW --- | ||
Severity: | blocker | ||
Priority: | P3 | ||
Version: | 3.x | ||
Hardware: | PC | ||
OS: | Windows XP | ||
Issue Type: | ENHANCEMENT | Exception Reporter: | |
Bug Depends on: | |||
Bug Blocks: | 41537 |
Description
jnash67
2002-07-07 18:44:00 UTC
Set target milestone to TBD J2SE project type in trunk creates one kind of JAR; other project types will permit others. Leaving open for suggestions to (at the user's option): 1. Include JARs of required projects in main JAR. 2. Remove statically unreferenced classes. *** Issue 167067 has been marked as a duplicate of this issue. *** The current workaround for this is to use the instructions provided in this URL: http://java.sun.com/developer/technicalArticles/java_warehouse/single_jar/. This will package multiple libraries into a single JAR file. It won't package other resources like the original poster requested. The problem with these instructions is that they don't work for projects without a main class. I have a shared library that I use among several of my applications. The shared library makes web service calls using JAX-RPC. I need the JAX-RPC libraries compiled into my shared library so that I only have to distribute one JAR. The instructions fail because NetBeans does not copy libraries to the lib folder if there is no main class. I was able to modify the instructions to have my library compiled into a single JAR. I'm having one problem with it, but it is mostly working. The steps I used are detailed in this post: http://forums.netbeans.org/viewtopic.php?t=31059. Please make sure that when this feature is added it also works for projects that do not have a main class. |