From: <php...@li...> - 2012-06-18 11:37:58
|
Hi, I'm trying to install javabridge with and installation of xampp for linux in Ubuntu, however I do not wish to use tomcat. I have followed the instructions and I have already tried running JavaBridge.war from /opt/lampp/bin (where php executable is) and from /opt/lampp/lib/php. I have /opt/lampp/bin in my path. I get this error when I try the javabridge: >bin # java -classpath JavaBridge.war TestInstallation Starting a simple servlet engine: [/usr/lib/jvm/java-7-oracle/jre/bin/java, -jar, /opt/lampp/bin/ext/JavaBridge.jar, SERVLET_LOCAL:8080] Jun 18 13:30:55 JavaBridge INFO : VM : 1.7.0_04@ http://java.oracle.com/ Jun 18 13:30:55 JavaBridge INFO : JavaBridge version : 6.2.1 Jun 18 13:30:55 JavaBridge INFO : logFile : Jun 18 13:30:55 JavaBridge INFO : default logLevel : 3 Jun 18 13:30:55 JavaBridge INFO : socket : SERVLET_LOCAL:8080 Jun 18 13:30:55 JavaBridge INFO : java.ext.dirs : /usr/lib/jvm/java-7-oracle/jre/lib/ext:/usr/java/packages/lib/ext Jun 18 13:30:55 JavaBridge INFO : php.java.bridge.base: /root Jun 18 13:30:55 JavaBridge INFO : thread pool size : 20 Jun 18 13:30:55 JavaBridge INFO : JavaBridgeRunner started on port INET_LOCAL:8080 Invoking php: [php-cgi, -n, -d, allow_url_include=On, /opt/lampp/bin/test.php] java.lang.RuntimeException: Could not run PHP ([php-cgi, -n, -d, allow_url_include=On, /opt/lampp/bin/test.php]), please check if php-cgi is in the path. at TestInstallation.start(TestInstallation.java:332) at TestInstallation.main(TestInstallation.java:252) Caused by: java.io.IOException: Cannot run program "php-cgi": error=2, No such file or directory at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029) at java.lang.Runtime.exec(Runtime.java:615) at java.lang.Runtime.exec(Runtime.java:526) at TestInstallation.start(TestInstallation.java:330) ... 1 more Caused by: java.io.IOException: error=2, No such file or directory at java.lang.UNIXProcess.forkAndExec(Native Method) at java.lang.UNIXProcess.<init>(UNIXProcess.java:135) at java.lang.ProcessImpl.start(ProcessImpl.java:130) at java.lang.ProcessBuilder.start(ProcessBuilder.java:1021) ... 4 more What am I missing? tkx Herberto Graça _________________________________ |