fix java run directory issue