I\'m building a linux installer for a Java application, and I end up with an install.jar and a setup.sh that I put in a zip file using ant.
The idea is the user unzi
I think you can do this with Apache Commons Compress.
First paragraph:
Access to internal and external attributes (which are used to store Unix permission by some zip implementations).
Take a look at the API and look for setUnixMode()
setUnixMode()