Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Nigel Wade Newsgroups: comp.lang.java.programmer Subject: Re: Using jar inside a jar Date: Thu, 22 Jan 2015 14:18:01 +0000 Lines: 13 Message-ID: References: <871tmn6qh9.fsf@Equus.decebal.nl> <87r3un58co.fsf@Equus.decebal.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: individual.net 3B4u/p5pJI2rHvczVlYY6AFWkcw1Zxrw0+K6eaA6gMnfFLSkW/ Cancel-Lock: sha1:e0ppx5tucV87fc2xdvN8+ZrbE3c= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130329 Thunderbird/17.0.5 In-Reply-To: <87r3un58co.fsf@Equus.decebal.nl> Xref: csiph.com comp.lang.java.programmer:30793 On 22/01/15 12:05, Cecil Westerhof wrote: > It is not possible to use the jar that I put into the jar file? You haven't put any jar into the jar file. It only contains the class files. What you put into your jar is the MANIFEST, which tells Java where the other jar should be located. The problem is that the other jar isn't where the MANIFEST says it should be. > I > would prefer to use only one jar file. But if that is not possible, I > will go for option 3. To do that you need to repackage the original jar into your own jar. The Java classloader won't look into jars contained in a jar.