Posted By:
Ralph_Cook
Posted On:
Sunday, March 16, 2008 02:15 PM
Ok, more information. The java mechanism for this is to put the jar file in the "Class-path:" line in the MANIFEST.MF; this file needs to be in the META-INF directory, which needs to be in the root directory of the jar file. Then you put the jar file you've referenced into the same directory as the jar containing this manifest, and the app can find the jar file.
So I still have the eclipse question -- how do I get this done? The jar packager does not seem to have any options for it; I tried creating a manifest right under the project, but I end up with that one and another one and the result doesn't work. Do I need to create a META-INF directory and hand-edit the manifest in that, and tell eclipse not to bother when it finds it exists already? Seems kinda "manual labor" compared to eclipse's other features.
So at least I know how to get it done with the Java runtime, I would still like to know how (or whether) eclipse has some support for this. I'd rather not have eclipse generate the jar, unpack the jar, edit the manifest, and then repack the jar each time I do this.