FreeHostia Forums https://forum.freehostia.com/ |
|
Running java application from cgi script https://forum.freehostia.com/viewtopic.php?f=7&t=8871 |
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? Code: #!/usr/bin/perl use CGI::Carp qw(fatalsToBrowser); print "content-type: text/plain\n\n"; print `java -version`; print "Test"; and to run the program I am using this command.. Code: `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 http://www.phpbb.com/ |