Deploying and executing something with Java on UNIX

I have a Java process (daemon) that works. This process is used as a service. Using this service, I can download a signed zip archive from a trusted server. After unpacking the ZIP archive, I want to execute the binary in the "unpacked" folder.

The problem is that this binary is not executable (there is no “x” in its file mode) ... I know that it can be installed using Java, but I want to use the general way.

Do you have any ideas how to make deployment a beautiful way?

(Yes, it must be Java)

Basically, I want to restore the Unix file mode bits after unpacking the ZIP archive. Is there a Java Lib that can do this?

+5
source share
2

chmod Java, x. chmod Unix (x) .

Java.

, , , , Java. Unix unzip - ​​ Unix . Unix , .

+3

tar , , . --preserve-permissions.

0

All Articles