File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

jar file concept

 
kamalkant rajput
Greenhorn
Posts: 22
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi ,
I wanted to know that is their any option without using any other software so that I can put more than one jar file in a file and make that file as jar and if I set classpath till this jar file than all jar files inside this jar file
should work normally as if path is set for individual jar file.

thanks in advance
 
Ulf Dittmer
Rancher
Pie
Posts: 42966
73
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No, jar files inside of other jar files are not part of the classpath.

You can keep several jar files in the same directory, and refer to them from the manifest of the main jar file, though. That way you have only a single jar file to put into your classpath. See this for details, especially the section title "Adding Classes to the JAR File's Classpath".
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic