|Running java application from cgi script
|Page 1 of 1|
|Author:||Cloud [ Wed Feb 27, 2008 5:25 am ]|
|Post subject:||Running java application from cgi script|
I am trying to run a java program (My choice of language) and to say the least.. I am horrible at perl. I am trying to call a cgi/pl file to call java with my file, but I can't even get the java -version command to work. Any help?
use CGI::Carp qw(fatalsToBrowser);
print "content-type: text/plain\n\n";
print `java -version`;
and to run the program I am using this command..
`java -cp /home/www/mySiteHere/ JavaProgram`;
but It won't start or even print out the java version.. Thanks in advanced, Cloud.
|Page 1 of 1||All times are UTC|
|Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group