Results 1 to 2 of 2
Thread: pack libraries into jar file
- 05-24-2010, 10:47 AM #1
Member
- Join Date
- Jan 2010
- Posts
- 37
- Rep Power
- 0
pack libraries into jar file
Hi all, I made program, where I had to use third party libraries. When I compile and link the program, my 'application.jar' is made, but directory 'lib' with my libraries is copied into my application directory too. I'd like to generate just one application.jar file, which can include the libraries. How can I do it? Is that possible? (btw I'm developing in NetBeans).
- 05-24-2010, 11:19 AM #2
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,427
- Blog Entries
- 7
- Rep Power
- 17
If those libraries are binary executable files you can't store them in your .jar file because your operating system needs to load them as files. Inside your .jar file those libraries aren't really files, they're just entries in your .jar file. Installers (google for "IzPack") can install all sorts of files on a target system, not just a single .jar file. So let your NetBeans create your .jar file and let e.g. IzPack create an installable file that contains your .jar file as well as the other (binary) files.
kind regards,
Jos
Similar Threads
-
Problem in importing jar file in libraries of netbeans
By dataprofiling in forum AWT / SwingReplies: 1Last Post: 03-30-2010, 11:30 AM -
Get item from string array and pack with blank space
By firewalll in forum New To JavaReplies: 2Last Post: 09-02-2009, 07:38 AM -
Netbeans Mobility Pack 6.0 and the Game Builder tool
By gissah in forum New To JavaReplies: 0Last Post: 03-26-2009, 04:07 PM -
Help needed to Conv. JpGE to pixel & pack to pic .. unable to do...Thanks
By Shyam Singh in forum New To JavaReplies: 0Last Post: 09-30-2008, 10:06 AM -
visual web pack
By Jack in forum NetBeansReplies: 2Last Post: 07-02-2007, 05:13 AM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks