Calling java from PHP exec

前端 未结 4 943
陌清茗
陌清茗 2020-12-01 15:17

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         


        
4条回答
  •  清歌不尽
    2020-12-01 15:57

    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);
    

提交回复
热议问题