This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Java in General and the fly likes jar files question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Java in General
Bookmark "jar files question" Watch "jar files question" New topic
Author

jar files question

Cyrus Serrano
Ranch Hand

Joined: Sep 29, 2003
Posts: 137
i just want to ask if its possible to include a jar file within another jar file?

i was creating this simple program , but was using an external jar file. will be possible to compile everything in one single jar file.

thanks
Ulf Dittmer
Rancher

Joined: Mar 22, 2005
Posts: 42958
    
  73
You can include a jar file within a jar file, but if it contains classes, then those would not be found by the regular classloader.
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 14950
    
  26

Have a look at: http://one-jar.sourceforge.net/


Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 8 API documentation
Cyrus Serrano
Ranch Hand

Joined: Sep 29, 2003
Posts: 137
thank you all.
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: jar files question
 
It's not a secret anymore!