init java api client