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 176966 - Extend Java Project support with packaging /lib... as one single jar file to execute
Summary: Extend Java Project support with packaging /lib... as one single jar file to ...
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Project (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P3 normal (vote)
Assignee: Tomas Zezula
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-11-17 00:55 UTC by tomzi
Modified: 2009-11-23 09:31 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description tomzi 2009-11-17 00:55:19 UTC
Hi there,

I recently came across this issue, developing a maven 'jar'  project, but the same exists in the J2SE support.

It is currently not possible to have one single jar file, containing all your dependencies, as an executable jar. 

I have found articles on netbeans homepage about that:
http://java.sun.com/developer/technicalArticles/java_warehouse/single_jar/
http://wiki.netbeans.org/PackagingADistributableJavaApp 
http://binkley.blogspot.com/2006/12/making-one-jar-with-maven.html

It is so much more easier to deploy a program on different platforms if there is only one jar file to start. Please provide support for that within netbeans for JSE Ant projects as well as maven projects.
Comment 1 Tomas Zezula 2009-11-18 01:34:23 UTC
Fatjar can be used for it. The j2seproject will need a change that it will either do the copylibs or the fatjar according to some property.
Comment 2 tomzi 2009-11-23 09:31:49 UTC
It would be great to have this functionality a standard functionality in nb