On Sat, 12 May 2001, Asim Memon wrote:

> to execute a java program from my perl script, i just say
> `java Extract` or whatever the name of the java class file is.
> But, I cannot seem to be able to execute this line when i call the
> script from a webpage as part of a response to a form.
>
> The idea is that when someone submits information from a form,
> the script that is called also has to execute a java program. The
> program is executed if the same script is run from the command line,
> but never when its called by the browser. Ive given everyone
> read-write-execute permissions as well..
>
> does anyone know what the problem here could be?

The java interpreter might not be in the path of the user the web server
is run as.

As an alternative, you might want to look into the Java.pm module, which
let's you directly interact with Java objects from Perl.  To use it,
however, you have to run a small application server that Java.pm uses to
interact wioth the Java objects.

-- Brett
                                   http://www.chapelperilous.net/btfwk/
------------------------------------------------------------------------
I sat down beside her, said hello, offered to buy her a drink... and then
natural selection reared its ugly head.

Reply via email to