Page 1 of 1

PHP/Java Bridge java_require() has no effect

Posted: Thu Aug 23, 2007 6:03 am
by Chris Corbyn
Has anyone run into this problem before? We're trying to get the PHP/Java bridge working for experimental purposes but the java_require() function does not seem to have any effect when we try to import jar files.

It doesn't error if the file exists, but packages from inside the jar file are not seen. On the other hand, if we directly add the jar file to java.classpath in the ini file (not desriable) then it works. We cannot ini_set("java.classpath", ) neither.... it doesn't error, it just has not effect.

Any clues? :(

open_base_dir is not turned on and safe_mode is off.

Posted: Thu Aug 23, 2007 6:18 am
by Oren
Sorry, I don't think I can help you here, but I just wanted to know why would you need JAVA and PHP to work together (besides the "experimental" reason you gave)?

Posted: Thu Aug 23, 2007 6:29 am
by Steve Mellor

Posted: Thu Aug 23, 2007 7:31 am
by Chris Corbyn
Steve Mellor wrote:is it this bridge found at http://php-java-bridge.sourceforge.net/pjb/?
Yes :)

~Oren, it's just something experimental we're trying which would help us use 3rd-party Java libraries inside our PHP app.

Posted: Thu Aug 23, 2007 7:51 am
by Steve Mellor
Ok, I'm taking a look at it now. I will let you know if I have any success.