Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Adding .jars embeded in a .jar to the classpath?

843798Feb 17 2003 — edited Feb 18 2003
Is it possible to package an application or a library in a .jar file that contains .jar files in it, so that those .jar files are accessible as part of the classpath? If so, does it require special code to retrieve the .jar files from within the .jar file they are distributed in? Or is it as simple as creating a URL to the .jar file inside a .jar file so that classloaders are able to look inside of it? I do not want to unjar the .jar files inside of the main .jar file to the disk. I want to keep them contained inside of it, but be able to use them at runtime.

Thanks.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 18 2003
Added on Feb 17 2003
4 comments
239 views