[add][java] bootstrap support