How should i edit manifest for jar?
16,964
Solution 1
An easier way to edit a manifest file inside a JAR file is as follows:
- change the extension of your JAR file to ZIP, e.g. test.jar just rename it to test.zip
- unzip your file
- edit your manifest file using a text editor, e.g. notepad++
- zip the contents of the unzipped folder
- rename it to test.jar
Solution 2
If you're using the command line, then just typing jar
prints this:
Example 2 allows you to specify the file that will be used as the manifest.
Author by
krotovic
Updated on June 04, 2022Comments
-
krotovic almost 2 years
I create an application - Instant Messenger - with connecting to MySQL and it required MySQL Driver, so I enclose this external library and this program works well. But I'd like to re-create this app as Applet and archive it to .jar How could I edit manifest for enclosing the Driver to Applet?
I know I can use (for desktop app) Class-Path: external.jar but does it work for applets either?
Thanks for all.
EDIT: Or is there another way how to enclose external jar to an Applet? E.g. with HTML code?