Include a jar file in my jar app
In JCreator I included a directory under the classes in their JDK Profile section... "c:\somDir\jarFile.jar" Code works like a charm, when I compile and run in JCreator, however it does NOT work when I try to package it.
I have tried running my jar file without the "jarFile.jar" and keepin them in the same directory, that didn't work
I have also tried putting the actual jar file in my jar file that I created, that didn't work either.
I didn't try extracting the contents of the jar file into mine because the directory structure would conflict my dir structure in the jar file (manifest file that is)
Frankly I have run out of ideas, I can't even get the program to find the files when I try it from the prompt using the -classpath option in dos.
plz help
[800 byte] By [
jay_dawga] at [2007-10-2 11:28:54]

Hi,
> I have also tried putting the actual jar file in my
> jar file that I created, that didn't work either.
> I didn't try extracting the contents of the jar file
> into mine because the directory structure would
> conflict my dir structure in the jar file (manifest
> file that is)
Out of curiosity are you trying to use executable jar files? If so you might want to put the classpath in the manifest using Class-Path: blah.jar etc. Be remember that this resolves to the disk filesystem not the internals of the jar that is being executed. In other words - the blah.jar file resides in the same directoy on the disk as your executable jar.
If you could clearly describe what you are trying to achive and how it is structured I am sure we could give you more pointers.
TTFN
Buzza at 2007-7-13 4:48:34 >
