php5 java integration

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • stien
    New Member
    • May 2007
    • 1

    php5 java integration

    Hi,

    I'm looking for someon who can help me with a problem with the php/java integration...I t just won't work..

    Here are some data to describe the software/system I'm working with:
    OperatingSystem : Windows Xp
    Webserver: Apache 2.2.3
    PHP: PHP5.2
    Java: j2sdk1.4.2_12

    I found a possible integration on http://be.php.net/java. Idownloaded pecl-5.2.1-Win32.zip and extracted it in the extension directory of PHP. Next I modified my php.ini file and added:

    [Java]
    extension=php_j ava.dll
    java.library.pa th=C:\ms4w\Apac he\php\ext
    java.class.path ="C:\ms4w\Apach e\php\ext\php_j ava.jar"
    java.home=C:\j2 sdk1.4.2_12\
    java.library=C: \j2sdk1.4.2_12\ jre\bin\server\ jvm.dll

    Now when I try to open a webpage with the new Java() statement, there's always an error (wich appears in a new window) saying CGI/FastCGI has encountered a problem and has to be terminated...

    Does anybody know how to fix this...or what's causing the error?
    thx
    kristien
  • varun aggarwal
    New Member
    • Feb 2007
    • 26

    #2
    Originally posted by stien
    Hi,

    I'm looking for someon who can help me with a problem with the php/java integration...I t just won't work..

    Here are some data to describe the software/system I'm working with:
    OperatingSystem : Windows Xp
    Webserver: Apache 2.2.3
    PHP: PHP5.2
    Java: j2sdk1.4.2_12

    I found a possible integration on http://be.php.net/java. Idownloaded pecl-5.2.1-Win32.zip and extracted it in the extension directory of PHP. Next I modified my php.ini file and added:

    [Java]
    extension=php_j ava.dll
    java.library.pa th=C:\ms4w\Apac he\php\ext
    java.class.path ="C:\ms4w\Apach e\php\ext\php_j ava.jar"
    java.home=C:\j2 sdk1.4.2_12\
    java.library=C: \j2sdk1.4.2_12\ jre\bin\server\ jvm.dll

    Now when I try to open a webpage with the new Java() statement, there's always an error (wich appears in a new window) saying CGI/FastCGI has encountered a problem and has to be terminated...

    Does anybody know how to fix this...or what's causing the error?
    thx
    kristien
    Hi Kristien
    I am also stuck on that.
    try to refer this link, it might clear your doubt.

    http://bugs.php.net/bug.php?id=2913 4&edit=1

    I dont know where you got the .jar file from.
    Because its not available php5 extensions.
    But if you are using the old .jar file might likely not work.
    The better way is to compile your classes explicitly and then start the program.
    Hope this helps
    Varun

    Comment

    • varun aggarwal
      New Member
      • Feb 2007
      • 26

      #3
      Originally posted by varun aggarwal
      Hi Kristien
      I am also stuck on that.
      try to refer this link, it might clear your doubt.

      http://bugs.php.net/bug.php?id=2913 4&edit=1

      I dont know where you got the .jar file from.
      Because its not available php5 extensions.
      But if you are using the old .jar file might likely not work.
      The better way is to compile your classes explicitly and then start the program.
      Hope this helps
      Varun

      Just to add some more

      http://bugs.php.net/bug.php?id=2314 5&edit=1

      i dont think you need to mention jvm.dll .
      I am still trying to make it work. If you get something please let me know too :).

      varun

      Comment

      • sonalijpawar
        New Member
        • Aug 2008
        • 3

        #4
        Hi,

        use this link .....



        this will help u a lot............ ..............

        Comment

        Working...