fix java copy script