PHP/Java Bridge java_require() has no effect

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

PHP/Java Bridge java_require() has no effect

Post 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.
User avatar
Oren
DevNet Resident
Posts: 1640
Joined: Fri Apr 07, 2006 5:13 am
Location: Israel

Post 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)?
Steve Mellor
Forum Commoner
Posts: 49
Joined: Thu Aug 02, 2007 8:18 am

Post by Steve Mellor »

User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post 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.
Steve Mellor
Forum Commoner
Posts: 49
Joined: Thu Aug 02, 2007 8:18 am

Post by Steve Mellor »

Ok, I'm taking a look at it now. I will let you know if I have any success.
Post Reply