Becky has asked for the wisdom of the Perl Monks concerning the following question:
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??
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: system call to a java program
by Dog and Pony (Priest) on Oct 22, 2002 at 10:02 UTC | |
Re: system call to a java program
by robartes (Priest) on Oct 22, 2002 at 09:48 UTC | |
Re: system call to a java program
by coreolyn (Parson) on Oct 22, 2002 at 11:00 UTC | |
Re: system call to a java program
by lachoy (Parson) on Oct 22, 2002 at 11:56 UTC | |
Re: system call to a java program
by Anonymous Monk on Oct 22, 2002 at 13:06 UTC | |
Re: system call to a java program
by Ananda (Pilgrim) on Oct 22, 2002 at 09:55 UTC |