fix java on travis