Fixed broken Java build.