Results 1 to 2 of 2
  1. #1
    eldushyant is offline Member
    Join Date
    Apr 2010
    Posts
    1
    Rep Power
    0

    Default Problem with calling php script from java file

    I am working on windows and using tomcat 6. I have installed wamp server and I am using the PHP/Java bridge.
    I have created a PHP script and now I want to call its functions from a java file. Can someone prvide me an example how to do this?

    I got an online example at http://php-java-bridge.sourceforge.n...hpThreads.java
    but I keep getting this error when I run it -

    Java Code:
    Exception in thread "main" java.lang.NullPointerException: php script engine not found at PhpThreads.main(NewClass.java:48)

  2. #2
    PhHein's Avatar
    PhHein is offline Senior Member
    Join Date
    Apr 2009
    Location
    Germany
    Posts
    1,430
    Rep Power
    7

Similar Threads

  1. Replies: 9
    Last Post: 01-23-2014, 08:17 PM
  2. Replies: 1
    Last Post: 01-07-2011, 08:20 AM
  3. calling a jar file from within java application
    By robby14 in forum Advanced Java
    Replies: 3
    Last Post: 03-10-2010, 09:11 PM
  4. Replies: 1
    Last Post: 04-12-2009, 01:20 PM
  5. Problem creating a Post script file
    By krishnan.1000 in forum New To Java
    Replies: 0
    Last Post: 02-14-2008, 08:15 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •