java php integration

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ptobra
    New Member
    • Jul 2006
    • 1

    #1

    java php integration

    can any one help me about how to integrate java support in php
    creating instances and how to override methods.

    I have successfully integrated java extension in to php. But still not able to find ways to run java threads in php. Is it possible.

    Is multithreading there in php ??? I dont want to use PHP process control functions neither do i wanna use declare and ticks.

    :)
  • vssp
    Contributor
    • Jul 2006
    • 268

    #2
    Can u please send the code?

    Comment

    • hwang2404
      New Member
      • Aug 2006
      • 5

      #3
      Originally posted by vssp
      Can u please send the code?
      what PHP version and Java version are u using? You have to make the java extension exactly matches the java version.

      Comment

      • subbukumararaja
        New Member
        • Dec 2006
        • 4

        #4
        Hi guys,

        i am also facing the same problem.

        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.

        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".

        Comment

        Working...