Update JavaBuild.java

Fix bug #8.
Merge pull request #2273 from GKFX/patch-2

implement "import static"