Spawn Shell Process
by treehousenorris2 » Mon Sep 14, 2020 9:15 pm
Hello!
I'd like to execute a shell command from my plugin's java.
I am getting "cannot run program" errors, such as the following. Is there anything Sweet Home specific to folder or spawn permissions that would affect this?
`hdiutil mount ~/Downloads/SweetHome3D-6.4.2-macosx.dmg`
`cd ‘/Volumes/SweetHome3D-6.4.2/Sweet Home 3D.app/Contents/MacOS’`
`./SweetHome3D`
java.io.IOException: Cannot run program "sh" (in directory "/bin"): error=316, spawn failed
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)
java.io.IOException: Cannot run program "adb" (in directory "/usr/local/bin"): error=316, spawn failed
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)
I'm working on a plugin to act as a one-click exporter to transfer the home's .obj file (etc) from a mac onto an android mobile device.
Thanks!