I'm calling a method, scrTm(), many times in a loop. In this method it executes a perl script called "hybrid2.pl".
hybrid2.pl needs two input files, "s1.seq" ve "s2.seq". I write these files in the same method, scrTm(). Method basically takes two character arrays as inputs(seq1 and seq2) and writes them into files "s1.seq" ve "s2.seq".
At first steps(up to around 100) the perl script is executed with no problem, however when the number of steps increase it gives an exception as:
I guess, I am ensuring that the files are written correctly and it is an issue of memory. There should be a simple solution to this, but I'm new in
Java.
Please help me how to fix it.
Here is my code: