Dear Monks,
I am running my web app using Perl/CGI on Apache server (Not Tomcat) under Linux.
From there I call compiled Java codes as jar files, e.g.
my @ar = `java -jar $path_to_jar/NounPhraseExtractionStandAlone.jar "$
+models_dir" "$text"`;
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 like
# perl -e '{@ar = `java -jar $path_to_jar/NounPhraseExtractionStandAlo
+ne.jar "$models_dir" "$text"`; print "$a[0]\n"}'
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.
Any help/advice is appreciated.