Problem in Integrating Java and PHP

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • subbukumararaja
    New Member
    • Dec 2006
    • 4

    Problem in Integrating Java and PHP

    Hi guys,

    i am trying to integrate the PHP and Java.

    Actually i am trying to create the instance of a java class in php file and use it's methods.

    My environment is WinXP/Apache 1.3/ PHP 5/jdk 1.5

    I have done the configuration changes in the php.ini file as below;
    extension=php_j ava.dll
    java.class.path ="C:\wamp\php\e xt\php_java.jar ;C:\Program Files\Java\jdk1 .5.0_06\jre\lib "
    java.home="C:\P rogram Files\Java\jdk1 .5.0_06\bin"
    java.library="C :\Program Files\Java\jdk1 .5.0_06\jre\bin \server\jvm.dll "
    java.library.pa th="C:\wamp\php \ext;"


    The files are in the metioned place.

    But, whenever i am trying to run the php file from the browser, it returns the
    "Page cannot be displayed" and in the down it shows,
    "Cannot find server or DNS Error"

    Before that, the Visual Studio Debugger opens and shows the exception in apache.exe
    that is "Unhandled exception at 0x00f9678f in Apache.exe: 0xC0000005: Access violation writing location 0xab000201."

    immediately the browser displays "the page cannot be displayed".


    i know so many people r working in this concept . can anyone help me.

    With regards,
    Subbukumararaja
Working...