reference to a jar file inside another jar file  
Author Message
JML





PostPosted: 2004-10-26 0:21:00 Top

java-programmer, reference to a jar file inside another jar file Hi, I need create a manifest file for a jar, but I need set the classpath in
the manifest file to reference a jar file inside the current jar file. My
idea is getting a single jar file which contains all the needed jar files.





 
Oscar kind





PostPosted: 2004-10-26 1:22:00 Top

java-programmer >> reference to a jar file inside another jar file JML <email***@***.com> wrote:
> Hi, I need create a manifest file for a jar, but I need set the classpath in
> the manifest file to reference a jar file inside the current jar file. My
> idea is getting a single jar file which contains all the needed jar files.

This is not possible IIRC: you'll have to copy the .jar files in the same
directory as the current .jar file, or package their contents in the
current .jar file.


--
Oscar Kind http://home.hccnet.nl/okind/
Software Developer for contact information, see website

PGP Key fingerprint: 91F3 6C72 F465 5E98 C246 61D9 2C32 8E24 097B B4E2
 
Thomas Fritsch





PostPosted: 2004-10-26 1:27:00 Top

java-programmer >> reference to a jar file inside another jar file JML wrote:
> Hi, I need create a manifest file for a jar, but I need set the classpath in
> the manifest file to reference a jar file inside the current jar file. My
> idea is getting a single jar file which contains all the needed jar files.
>
Read
<http://java.sun.com/j2se/1.4.2/docs/api/java/net/JarURLConnection.html>
to get some clues about URLs for files inside a jar file.

Having read this, I've got the vague idea, that an URL like
jar:file:outerfile.jar!innerfile.jar
contained in the manifest's classpath might do the trick.

--
"Thomas:Fritsch$ops:de".replace(':','.').replace('$','@')

 
 
Andrew Thompson





PostPosted: 2004-10-26 14:31:00 Top

java-programmer >> reference to a jar file inside another jar file On Mon, 25 Oct 2004 18:20:54 +0200, JML wrote:

> ...My
> idea is getting a single jar file which contains all the needed jar files.

Let us know how that goes, pop back if you have any questions.

--
Andrew Thompson
http://www.PhySci.org/codes/ Web & IT Help
http://www.PhySci.org/ Open-source software suite
http://www.1point1C.org/ Science & Technology
http://www.LensEscapes.com/ Images that escape the mundane