Probs running .jar file via CGI script under Apache
Hi everyone,
I have a Perl CGI script running under Apache that runs a Java .jar file. The program is called Haploview and basically takes a few input files, does some calculations then produces a few output files.
The command the CGI script uses to run works fine when I cut and paste it onto the command line but fails when done from the script, with the following error:
#/userdata/home/tim/j2re1.4.2_05/bin/java -jar /userdata/home/tim/applications/haploview/Haploview.jar -n -p /tmp/ENSG00000017427.ped --skipcheck -i /tmp/ENSG00000017427.info -o SFS --dprime -m 500
#Error occurred during initialization of VM java.lang.Error: Properties init:
Could not determine current working directory.
I've googled for this but the only hints were to do with permissions, so I've set pretty much everything to 777. I've tried putting the .jar in different places including the Java bin folder but no joy. Btw I know very little about Java, but my Perl and Apache are ok, & running Solaris Sparc SUNW,Ultra-4.
Cheers!
Tim
|