Hello,

I have installed wamp and tomcat 7. I put javabridge.war inside webapp folder in tomcat. I started the tomcat service and javabridge directory was created inside webapp.

i copied javabridge directory to the root directory www. Now i am using the following code to test this setup

require_once("http://127.0.0.1:8080/JavaBridge/java/Java.inc");

echo java("java.lang.System")->getProperties();

However, I am getting the follwoing error

Warning: require_once(http://127.0.0.1:8080/JavaBridge/java/Java.inc) [function.require-once]: failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in C:\wamp\www\BirtBridgeTest\test.php on line 2

Can someone please tell me what mistake am i making here. Am I missing some settings or making any other mistake here?

Arif

    Are you sure you shouldn't be including the file locally from the filesystem rather than via a URL? Try using a local filepath (absolute or relative - doesn't matter which you use) instead.

      Thanks for the reply. I have seen on most of the communities that using it this way should not be any problem. however i used the absolute path C:\wamp\www\BirtBridgeTest\Java.inc causing another error.

      Access to the specified resource () has been forbidden

      Also, the document, which comes with the javabridge says that we can use the path like require_once("http://localhost:8080/JavaBridge/java/Java.inc"); so this should not be any problem

      Arif

        Write a Reply...