|
From: <php...@li...> - 2009-04-28 11:50:48
|
Hello there, Following problem: I run the php java bridge successfully as standalone under Win XP and Vista. For that I extracted the jars from downloaded "JavaBridgeTemplate5442.war". So i have - JavaBridge.jar - php-script.jar - php-servlet.jar - myown.jar The classes of "myown.jar" use the classes of the bridge. My aim is to run that on ubuntu 8_10 but i sadly receive following exception: javax.script.ScriptException: java.io.IOException: Cannot run program "php-cgi": java.io.IOException: error=2, No such file or directory at php.java.script.PhpScriptEngine.eval(PhpScriptEngine.java:112) at php.java.script.SimplePhpScriptEngine.eval(SimplePhpScriptEngine.java:299) at javax.script.AbstractScriptEngine.eval(AbstractScriptEngine.java:247) at de.labtrax.affiliatewindow.service.impl.AffiliateServiceImpl.main(AffiliateServiceImpl.java:51) Caused by: java.io.IOException: Cannot run program "php-cgi": java.io.IOException: error=2, No such file or directory at java.lang.ProcessBuilder.start(ProcessBuilder.java:459) at java.lang.Runtime.exec(Runtime.java:593) at php.java.bridge.Util$Process.start(Util.java:972) at php.java.bridge.Util$ProcessWithErrorHandler.start(Util.java:1074) at php.java.bridge.Util$ProcessWithErrorHandler.start(Util.java:1129) at php.java.script.CGIRunner.doRun(CGIRunner.java:125) at php.java.script.HttpProxy.doRun(HttpProxy.java:79) at php.java.script.CGIRunner.run(CGIRunner.java:110) Caused by: java.io.IOException: java.io.IOException: error=2, No such file or directory at java.lang.UNIXProcess.<init>(UNIXProcess.java:148) at java.lang.ProcessImpl.start(ProcessImpl.java:65) at java.lang.ProcessBuilder.start(ProcessBuilder.java:452) ... 7 more I got the same problem on vista but solved it easily with just installing php. On my ubuntu php5 is installed per synaptic and php works in apache in and as cli. Any clues how i get this working on ubuntu? Thank you Malte -- Psssst! Schon vom neuen GMX MultiMessenger gehört? Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger01 -- Neu: GMX FreeDSL Komplettanschluss mit DSL 6.000 Flatrate + Telefonanschluss für nur 17,95 Euro/mtl.!* http://dslspecial.gmx.de/freedsl-surfflat/?ac=OM.AD.PD003K11308T4569a |