fix java dependency