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

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • anagai

    #1

    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.d ll' - 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?

  • anagai

    #2
    Re: php java bridge - procedure could not be found in Unknown on line 0 error

    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\h tdocs\xcrmx\con tent\global\Pdf Control.php on line 38

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

    $this->pdfWriter = new Java('com.lowag ie.text.pdf.Pdf Writer');

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

    java.class.path = "c:\PHP\ext\Jav aBridge.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

    Comment

    • anagai

      #3
      Re: php java bridge - procedure could not be found in Unknown on line 0 error

      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.

      Comment

      • peter

        #4
        Re: php java bridge - procedure could not be found in Unknown on line 0 error

        Hello!
        [color=blue]
        > apache 1.3. But I need to use apache 2.0 so i can use latest version of
        > php.[/color]

        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?
        [color=blue]
        > Unable to load Java Library jvm.dll, error: The specified module could
        > not be found.[/color]

        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

        Comment

        Working...