M
mack
I want to make a JAR file programmatically from a native app (C++, not
Java), ultimately using zlib to create the jar.
As a test, I tried this:
I took a working JAR file, unzipped it, then rezipped it, and set the
extension to .jar. Running it tells me it could not find the manifest.
Unzipping the rezipped file looked exactly the same as the unzipped JAR
file, however.
I read somewhere (is it true?) that the manifest must be the first item in a
jar. So, I used the command line zip command to specify each file. It
reports that it "added" the files in the order I listed them. Unzipping the
result appeared to confirm that the manifest was indeed first. Renaming it
..jar and running it, again, tells me it could not find the manifest.
Why aren't my hand-made jar files working?
What is the difference between a jar and a zip file with a .jar extension?
Thanks.
Mack
Java), ultimately using zlib to create the jar.
As a test, I tried this:
I took a working JAR file, unzipped it, then rezipped it, and set the
extension to .jar. Running it tells me it could not find the manifest.
Unzipping the rezipped file looked exactly the same as the unzipped JAR
file, however.
I read somewhere (is it true?) that the manifest must be the first item in a
jar. So, I used the command line zip command to specify each file. It
reports that it "added" the files in the order I listed them. Unzipping the
result appeared to confirm that the manifest was indeed first. Renaming it
..jar and running it, again, tells me it could not find the manifest.
Why aren't my hand-made jar files working?
What is the difference between a jar and a zip file with a .jar extension?
Thanks.
Mack