i c'dnt get that to work :-(.
So i have a final.jar which in turn has some jars inside it + directory structures / files etc.
So i had to ask the client to extract the enclosing jar file.
One more thing i found out while working with executable jar files :
I posted it in the ranch but no one has has confirmed it as yet in the forum.
the class-path setting is immaterial when using executable jar files. IF the executable jar refers to other jars, then we normally have a
Class-Path attribute in the manifest.
So depending upon this attribute setting the other jars are searched.
Class-Path: another1.jar another2.jar
another1.jar and another2.jar will be searched only in the same directory as the executable jar file. Explicit classpath settign does'nt help.
if we say
(in manifest),
Class-Path: .\folder\another1.jar .\folder\another2.jar
then it w'd search in folder named "folder" relative to the location of the executable jar file.
I c'd'nt digest it early on that i c'd ship an application that did'nt need a classpath setting!
Just make sure that the dependent jar files are in the same folder as executable jar file or in a specific subfolder relative to the executable jar.
Am still waiting for responses though. My application works just fine.
karthik.
Originally posted by Cindy Glass:
You know, now that I think about it, I have never really SEEN a jar file inside another jar file - and I have surely never tested to see if it works.
Tell us how it works out.