*
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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
Marshal

Joined: Mar 22, 2005
Posts: 41150
    
  45
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.


Ping & DNS - my free Android networking tools app
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 14074
    
  16

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


Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 7 API documentation
Scala Notes - My blog about Scala
Cyrus Serrano
Ranch Hand

Joined: Sep 29, 2003
Posts: 137
thank you all.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: jar files question
 
Similar Threads
put directory in classpath
JAR file
weblogic
How to read xml or xsl from jar file
overwrite the property file