Update JavaBuild.java

Fix bug #8. (import static causes incorrect errors.)