Update JavaBuild.java

Fix bug #8.