The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How to add Java module to PHP

Discussion in 'General Discussion' started by flocsy, Dec 6, 2006.

  1. flocsy

    flocsy Registered

    Joined:
    Aug 30, 2006
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    I am trying to install Java module into php 5.1.4.

    I recompiled apache with the checkbox of Java checked.
    I can see that it compiles php with --with-java=/usr/local/jdk
    The apache server is restarted.

    When I run phpinfo() I can see JAVA_HOME set to /usr/local/jdk, but there's no Java module.
    Even with dl('java.so') I can't load it. Actually updatedb ; locate java.so didn't find anything on the server.

    What should I do in order to be able to use $system = new Java('java.lang.System') in my php scripts?

    Thanks in advance, Gavriel
     
  2. cheriescor3

    cheriescor3 Registered

    Joined:
    Sep 23, 2006
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    im still new at this but since no one has replied i'll give my 2 cents
    i believe you have to enable the modual in php.ini
    and also set the directory that the modual is in.I found this info here so maybe thats why no reply s,
     
    #2 cheriescor3, Dec 6, 2006
    Last edited: Dec 8, 2006
Loading...

Share This Page