vit has asked for the wisdom of the Perl Monks concerning the following question:
which works pretty well on my localhost with Apache Tomcat. It also works well when I run it on the external server in a command line likemy @ar = `java -jar $path_to_jar/NounPhraseExtractionStandAlone.jar "$ +models_dir" "$text"`;
However inside the application it does not work. I checked $path_to_jar using some Perl code instead of Java placed at the same place as jar and it works fine.# perl -e '{@ar = `java -jar $path_to_jar/NounPhraseExtractionStandAlo +ne.jar "$models_dir" "$text"`; print "$a[0]\n"}'
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Call jar from Perl/CGI on Apache Server with Linux
by blue_cowdawg (Monsignor) on Mar 18, 2013 at 14:11 UTC | |
|
Re: Call jar from Perl/CGI on Apache Server with Linux
by Anonymous Monk on Mar 18, 2013 at 14:48 UTC | |
|
Re: Call jar from Perl/CGI on Apache Server with Linux
by RichardK (Parson) on Mar 18, 2013 at 14:18 UTC |