I want to copy a file into a ZIP or JAR archive.
Is that possible? If so how?
Use -m to import a file to a ZIP archive.
I found this on StackOverflow maybe it helps you.
But be careful it deletes the source file after it adds it to the archive. See the link for more details.
Instructions from this site. http://linux.about.com/od/commands/l/blcmdl1_zip.htm.
If a directory becomes empty after removal of the files, the directory is also removed. No deletions are done until
**for jar extension you can use jar command as the following :
**OR you can extract file from jar extension as following :
Have Fun :)