Use the find -exec instead of find ... | xargs otherwise when there is error log in the output of the build.
diff --git a/tests/JavaTest.sh b/tests/JavaTest.sh
index ef261a7..40e854b 100755
--- a/tests/JavaTest.sh
+++ b/tests/JavaTest.sh
@@ -29,7 +29,7 @@
 	exit 1
 fi
 
-find ../ -name "*.class" | xargs rm
+find .. -type f -name "*.class" -exec rm  {} \;
 
 if [[ -e "${targetdir}" ]]; then
     echo "clean target"