Assuming a diskless situation, how can I (in Java) create a process from an in-memory unzipped exe (and respective support files)?
I've seen out to unzip to memory here and here but can't find a way to create a process from a byte[] or InputStream, ie without a (filesystem) command string.
The idea is to bundle a 3rd party component in a Java application/project without allowing it's standalone usage, thus bundling it in a password protected Zip. During my program's execution it would be unzipped to memory (exe + support files) and prepared for latter OutputStream writes, as in:
Process process = ?
OutputStream output = process.getOutputStream();
...
output.write("my commmand to 3rd party component");
Any hints?
Thanks in advance,