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,198
    Rep Power
    6

    Default

    Math problems? Call 1-800-[(10x)(13i)^2]-[sin(xy)/2.362x]
    The Ubiquitous Newbie Tips

Similar Threads

  1. Replies: 1
    Last Post: 01-07-2011, 07:20 AM
  2. calling a jar file from within java application
    By robby14 in forum Advanced Java
    Replies: 3
    Last Post: 03-10-2010, 08:11 PM
  3. Replies: 1
    Last Post: 04-12-2009, 12:20 PM
  4. Problem creating a Post script file
    By krishnan.1000 in forum New To Java
    Replies: 0
    Last Post: 02-14-2008, 07:15 PM
  5. Replies: 0
    Last Post: 11-13-2007, 12:41 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
  •