It is currently Thu Mar 28, 2024 10:11 am


All times are UTC


Forum rules


Please click here to view the forum rules



Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: Running java application from cgi script
PostPosted: Wed Feb 27, 2008 5:25 am 
Newbie
Newbie

Joined: Wed Feb 27, 2008 5:20 am
Posts: 1
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.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ]  Moderators: Moderators, Support Team

All times are UTC


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
Hosting | Domains | Servers | Extras | Order | Support | Contacts | FreeHostia © 2011