fix java upstart