I am doing the following in PHP:
exec(\'java -jar \"/opt/flex3/lib/mxmlc.jar\" +flexlib \"/opt/flex3/frameworks\" MyAS3App.as -default-size 360 280 -output M
I manage to get this to work togheter with MAMP. The solution was to include the:
export DYLD_LIBRARY_PATH=""; in the exec call: $argss = "export DYLD_LIBRARY_PATH=\"\"; /usr/bin/java -jar /Applications/yourjarfile.jar"; $resultXML = exec($argss, $output);