Spawning a process from an app packaged with AppBundler impossible

Hendrik Schreiber hs at tagtraum.com
Sun Jul 6 08:13:54 UTC 2014


On Jul 6, 2014, at 2:42, Michael Hall <mik3hall at gmail.com> wrote:

> On Jul 5, 2014, at 3:22 PM, Hendrik Schreiber <hs at tagtraum.com> wrote:
> 
>> Runtime.getRuntime().exec("/bin/echo");
> 
> I tried it a little more like you did. I'm not seeing results but I'm not seeing exceptions either.

Thanks for checking, Michael.

In my setup I use the regular Ant copy task to copy the JRE into my bundle.

As it turns out, in .../Content/Home/jre/lib is a file called "jspawnhelper" and it has to be executable for Runtime.getRuntime().exec(...) to work.
In my case it wasn't, because Ant unfortunately swallows permissions :-(

Cheers,

-hendrik



More information about the macosx-port-dev mailing list