javabridge setup/installation issue

2019-07-14 03:37发布

I am using wamp server 2 and tomcat 7. I put javabridge.war inside webapp directorya and started tomcat. This created javabridge directory inside webapp.

I even copied this javabridge directory to the root directory. However, when I try to use the follwoing example, I get an error:

php require_once("java/Java.inc");
echo java("java.lang.System")->getProperties();
specified resource () has been forbidden. 

Can someone tell me what mistake did i make in this setup?

1条回答
萌系小妹纸
2楼-- · 2019-07-14 03:42

Remember to do all this

1. download PHP/Java Bridge(http://php-java-bridge.sourceforge.net/).
2. deploy the Java Bridge on tomcat Server.
3. copy the jar jasper lib, ireport lib and mysql connector j lib in tomcat lib folder
4. restart tomcat server
5. edit php.ini,turn on setting -> allow_url_include = On;
6. restart apache httpd server
查看更多
登录 后发表回答