fix java port