php使用javabridge是报错了,怎么解决? 5
我是菜鸟级人物,报错信息如下:java.lang.reflect.InvocationTargetExceptionatsun.reflect.GeneratedMeth...
我是菜鸟级人物,报错信息如下:
java.lang.reflect.InvocationTargetException
at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at php.java.bridge.JavaBridgeRunner.handleScriptContent(JavaBridgeRunner.java:367)
at php.java.bridge.JavaBridgeRunner.handleDoGet(JavaBridgeRunner.java:452)
at php.java.bridge.JavaBridgeRunner.doGet(JavaBridgeRunner.java:419)
at php.java.bridge.http.HttpServer.service(HttpServer.java:237)
at php.java.bridge.http.HttpServer$Runner.run(HttpServer.java:161)
at php.java.bridge.ThreadPool$Delegate.run(ThreadPool.java:60)
Caused by: javax.script.ScriptException: java.io.IOException: Cannot run program "php-cgi": CreateProcess error=2, ϵͳÕҲ»µ½ָ¶
at php.java.script.PhpScriptEngine.eval(PhpScriptEngine.java:112)
at php.java.script.SimplePhpScriptEngine.eval(SimplePhpScriptEngine.java:223)
at javax.script.AbstractScriptEngine.eval(Unknown Source)
... 9 more
Caused by: java.io.IOException: Cannot run program "php-cgi": CreateProcess error=2, ϵͳÕҲ»µ½ָ¶
at java.lang.ProcessBuilder.start(Unknown Source)
at java.lang.Runtime.exec(Unknown Source)
at php.java.bridge.Util$Process.start(Util.java:1012)
at php.java.bridge.Util$ProcessWithErrorHandler.start(Util.java:1114)
at php.java.bridge.Util$ProcessWithErrorHandler.start(Util.java:1169)
at php.java.script.CGIRunner.doRun(CGIRunner.java:124)
at php.java.script.HttpProxy.doRun(HttpProxy.java:62)
at php.java.script.CGIRunner.run(CGIRunner.java:109)
Caused by: java.io.IOException: CreateProcess error=2, ϵͳÕҲ»µ½ָ¶
at java.lang.ProcessImpl.create(Native Method)
at java.lang.ProcessImpl.<init>(Unknown Source)
at java.lang.ProcessImpl.start(Unknown Source)
... 8 more
、 展开
java.lang.reflect.InvocationTargetException
at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at php.java.bridge.JavaBridgeRunner.handleScriptContent(JavaBridgeRunner.java:367)
at php.java.bridge.JavaBridgeRunner.handleDoGet(JavaBridgeRunner.java:452)
at php.java.bridge.JavaBridgeRunner.doGet(JavaBridgeRunner.java:419)
at php.java.bridge.http.HttpServer.service(HttpServer.java:237)
at php.java.bridge.http.HttpServer$Runner.run(HttpServer.java:161)
at php.java.bridge.ThreadPool$Delegate.run(ThreadPool.java:60)
Caused by: javax.script.ScriptException: java.io.IOException: Cannot run program "php-cgi": CreateProcess error=2, ϵͳÕҲ»µ½ָ¶
at php.java.script.PhpScriptEngine.eval(PhpScriptEngine.java:112)
at php.java.script.SimplePhpScriptEngine.eval(SimplePhpScriptEngine.java:223)
at javax.script.AbstractScriptEngine.eval(Unknown Source)
... 9 more
Caused by: java.io.IOException: Cannot run program "php-cgi": CreateProcess error=2, ϵͳÕҲ»µ½ָ¶
at java.lang.ProcessBuilder.start(Unknown Source)
at java.lang.Runtime.exec(Unknown Source)
at php.java.bridge.Util$Process.start(Util.java:1012)
at php.java.bridge.Util$ProcessWithErrorHandler.start(Util.java:1114)
at php.java.bridge.Util$ProcessWithErrorHandler.start(Util.java:1169)
at php.java.script.CGIRunner.doRun(CGIRunner.java:124)
at php.java.script.HttpProxy.doRun(HttpProxy.java:62)
at php.java.script.CGIRunner.run(CGIRunner.java:109)
Caused by: java.io.IOException: CreateProcess error=2, ϵͳÕҲ»µ½ָ¶
at java.lang.ProcessImpl.create(Native Method)
at java.lang.ProcessImpl.<init>(Unknown Source)
at java.lang.ProcessImpl.start(Unknown Source)
... 8 more
、 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询