469,568 Members | 1,395 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,568 developers. It's quick & easy.

php java bridge - procedure could not be found in Unknown on line 0 error

hi

I am trying to install the java bridge library for php 5.1.2. I have
installed the j2see 1.4 and jdk. I have setup the [java] section in
php.ini as follows:

[java]
java.classpath = "c:/PHP/ext/JavaBridge.jar;"
java.java_home = "c:/Sun/AppServer/jdk/bin"
java.libpath = "c:/PHP/ext"

I have downloaded pecl package into the php folder. Have copied the
javabridge.jar and .war file to php/ext dir/. I have copied the
php_java.dll from javabridge zip file to the php/ext dir.

Im running windows xp and apache 2.0.55.

Apache will restart, but with an error in the error log file. The error
message is:

Unable to load dynamic library 'c:/php/ext\\php_java.dll' - The
specified procedure could not be found.\r\n in Unknown on line 0

It found the dll but cant find a procedure in it? What the heck is
that?

Anyone have a clue?

Apr 25 '06 #1
3 5726
I am now using the latest php_java.dll. ok, now it seems to load the
php_java.dll fine, but still does not seem to load the JavaBridge.jar
yet. I dont see the normal Javabridge settings in the phpinfo()
information. I just see the java paths information. Java lib
is loaded but not Javabridge. Im trying to use this third party Java
class
called itext. When i try to create instance of this java class in php i
get

Unable to load Java Library jvm.dll, error: The specified module could
not be found. in C:\Program Files\Apache
Group\Apache2\htdocs\xcrmx\content\global\PdfContr ol.php on line 38

Error on the line where i try to create a java instance like this:

$this->pdfWriter = new Java('com.lowagie.text.pdf.PdfWriter');

Ive included the path to the third party class like this in php:

java.class.path = "c:\PHP\ext\JavaBridge.jar;c:\PHP\ext\itext-1.3.jar"

the second jar is the class i want to use. Its in the ext folder. Its
not loading it for some reason. I have the latest version of that jar
also. What is preventing javabridge.jar from loading?

thanks for your help

Apr 25 '06 #2
Itext is a java class for creating pdf files. This itext class works
fine on a server running older version of php_java.dll, javabridge and
apache 1.3. But I need to use apache 2.0 so i can use latest version of
php. But since i upgraded to apache 2.0 i cant get the javabridge to
work right.

If you can provide any useful insight at all, then please do. id
appreciate that.

Apr 28 '06 #3
Hello!
apache 1.3. But I need to use apache 2.0 so i can use latest version of
php.
What does apache 2.0 have to with the php version number? Why don't you
use the latest version of php with the apache server you already have?
Unable to load Java Library jvm.dll, error: The specified module could
not be found.


Looks like you use the PECL extension. In the past I've used the java
bridge from sourceforge: http://php-java-bridge.sourceforge.net/

Peter

May 1 '06 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

9 posts views Thread by Steven M. Scotten | last post: by
9 posts views Thread by IchBin | last post: by
reply views Thread by cosmicxdust | last post: by
reply views Thread by suresh191 | last post: by
4 posts views Thread by guiromero | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.