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.