Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Beginning Java and the fly likes jar file with in a jar file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "jar file with in a jar file" Watch "jar file with in a jar file" New topic
Author

jar file with in a jar file

Brian Percival
Ranch Hand

Joined: Jun 23, 2004
Posts: 163
Is this possible? I have a scenario where I have a third party jar file that I use in a package. I want to create a single jar file for both my package and also any third party jars I used in my package. what is my path of action for this?
Brian
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41065
    
  43
The class loader won't find the classes of jar files inside of jar files. You need to un-jar all of them, and create a single jar file that contains all library and applications class files.


Ping & DNS - my free Android networking tools app
Brian Percival
Ranch Hand

Joined: Jun 23, 2004
Posts: 163
k thanks.. guess I will have to live with multiple jar files then
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 14074
    
  16

This might be of interest: One-JAR: Deliver your Java apps in a single JAR


Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 7 API documentation
Scala Notes - My blog about Scala
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: jar file with in a jar file
 
Similar Threads
Third party place for EJB.
Decrease size of third party JAR file
Package Problem !!
ejb-jar & third party libs
alternative for util.zip