Fix Java code to test on Nephele cluster