If I cd to the directory containing getseq.java on the command line, then run the perl program from here, then the following code works fine ('getseq.java' needs 3 arguments - a number like BC000898 and the names of 2 output files to write to).
system "java getseq BC000898 C:/testjava/DNA2.txt C:/testjava/protein2.txt";
However, if I try to run the perl program from outside this directory, it doesn't work; I get the "exception in thread main..." error. Why??
In reply to system call to a java program by Becky
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |