Grading java submission and transmitting files between two processes