Re: [LIP] calling java routine from perl
Rohan Almeida <[email protected]>
| Newsgroups | gmane.user-groups.linux.india.programmers |
|---|---|
| Organization | Sify Ltd. |
| Message-ID | <[email protected]> |
vivek khurana wrote:
> I dont think there is any problem regarding the
> classpath otherwise the script would not run even from
But the CLASSPATH and other java sensitive variables
may bot be defined correctly for the httpd process
owner (nobody or apache).
Do the following:
# echo $JAVA_HOME; echo $CLASSPATH
# su -l nobody (or whoever the httpd runs as)
$ echo $JAVA_HOME; echo $CLASSPATH
Do you notice any difference?
Anyways, I am assuming that your problem is related to
path problems which may not be the case.
Going further, you can try the following:
o> Run your script as user nobody on command line
o> modify the java environment variables in the
beginning portion of your CGI script
o> Call the java binary with the "-classpath" argument
Regards,
Rohan
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click