Fixing the java build