jQuery in Action, 2nd edition*
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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: 39547
    
  27
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 - updated with new look and Ping home screen widget
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: 13870
    
  10

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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: jar file with in a jar file
 
Similar Threads
alternative for util.zip
ejb-jar & third party libs
Third party place for EJB.
Decrease size of third party JAR file
Package Problem !!