我有一台使用 phpJavaBrigde 的服务器,我在添加 jar 文件时遇到问题:
require_once('Java.inc');
java_require("tciphone.jar");
它有一个错误:
[[o:Exception]:"java.lang.Exception: Invoke failed: [[o:JavaBridge]]->updateJarLibraryPath((o:String)[o:String], (o:String)[o:String], (o:String)[o:String], (o:String)[o:String]).
Cause: java.io.IOException: Could not open jar file /var/www/iphone/trescantos/tciphone.jar, reason: error in opening zip file VM: 1.6.0_20@http://java.sun.com/"
at: #-29 php.java.bridge.DynamicJavaBridgeClassLoader.checkJarFile(DynamicJavaBridgeClassLoader.java:108) #-28 php.java.bridge.JarLibraryPath.createUrls(JarLibraryPath.java:193)
#-27 php.java.bridge.JarLibraryPath.checkURLs(JarLibraryPath.java:118) #0 /usr/share/php/Java.inc(265):
java_ThrowExceptionProxyFactory->getProxy(1, NULL, true) #1 /usr/share/php/Java.inc(417):
java_Arg->getResult(true) #2 /usr/share/php/Java.inc(423):
java_Client->getWrappedResult(true) #3 /usr/share/php/Java.inc(627):
java_Client->getResult() #4 /usr/share/php/Java.inc(1631):
java_Client->invokeMethod(0, 'updateJarLibrar...', Array)
#5 /var/www/iphone/trescantos/newIncidenceReg.php(6): java_require('tciphone.jar')
#6 {main}]
该文件存在我照常检查权限644。
会发生什么?