For Java 7 I have to update my runnable jar (for web start) so the manifest have to include the permissions tag. So I created a META-INF
folder under /src
and put my MANIFEST.MF
file in there. Exporting the project with Export -> Runnable JAR
just overwrites my manifest with the useless default one ...
Next step was to use the Export -> JAR
where no external libraries were included (like the opencmis libraries from apache) no matter which options I used. This jar can not work.
Last step was to let the build.xml be created from the first step and I added the manifest tags in the build.xml by hand and run the ant build. This was working, but now in the META-INF
folder of the Jar I have 5 LICENSE
files, 5 NOTICE
files and 5 DEPENDENCIES
files. I am not able to sign this jar because all those files have the same name.
To make it clear, I want:
- include custom MANIFEST.MF
- Extract required libraries into generated JAR to inflate the referenced jar files and copy the classes into the generated jar
With eclipse export wizzards, there is no way to achieve BOTH behaviors!
So can anybody tell me how I can add the permissions tag into the manifest, build a Runnable JAR
with all needed libraries and sign the jar?
Thank you all! Michael