fix java startup failed