php 5 - how to integrate Java to PHP 5

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • hwang2404
    New Member
    • Aug 2006
    • 5

    #1

    php 5 - how to integrate Java to PHP 5

    I have PHP 5.0.5 and java 1.2.2. I am trying to integrate them together. I have configure the php.ini as following:

    ;This must point to the location of php_java.dll.
    java.library.pa th = "C:\php\ext "

    ; This points to the directory where your Java
    ; classes will be stored. You can designate multiple
    ; paths, each path separated by a semicolon.
    ; It must also include the location of php_java.jar
    java.classpath = "C:\php\ext\jdk 1.2.2\php_java. jar"

    ; This points to the bin directory of the JDK.
    java.home = "C:\jdk1.2.2\bi n"

    ; This must point to the Java Virtual Machine (jvm.dll) file.
    java.library = "C:\jdk1.2.2\jr e\bin\classic\j vm.dll"

    I tried a test file but it doesn't work - always get "cannot find page" error.

    Anybody can tell what's wrong?

    Thanks

    Harry
  • sashi
    Recognized Expert Top Contributor
    • Jun 2006
    • 1749

    #2
    Hi Hwang,

    please refer to the links attached.. take care..


    Comment

    • hwang2404
      New Member
      • Aug 2006
      • 5

      #3
      Does it mean if I use PHP5, I have to use PHP/Java bridge to integrate them? BTW, I am using Windows (2003) OS.

      Thanks

      Harry

      Comment

      • hwang2404
        New Member
        • Aug 2006
        • 5

        #4
        Thanks, I made the Java/PHP bridge works.

        BTW, anybody knows how to import a outside java package to PHP? Because I need to use another company's class package for my PHP to pass parameter to it for some reason.

        Thanks

        harry

        Comment

        Working...