Running a Java program in a Perl/CGI script -


i have program uses external libraries , code i've written in java. however, want make accessible via web.

if had full control on webserver running on, use tomcat or jboss, don't have such privileges @ school.

the servers have access have apache http server normal linux goodies installed (think: perl, php, etc.)

how write perl script runs java program? i've tried basics such "system java myprogram" , "exec java myprogram", don't seem work.

i'd appreciate or insight on this. thank you!

try this:

system('/full/path/to/java -cp full_class_path my.class.name'); 

Comments