Although this method of preservation has been used in the past, it is no longer considered a safe method of preserving herbs. Instead, you might consider using a good quality vinegar (stuff the jar with basil, add vinegar to cover, strain before use) or drying the basil and other herbs and creating homemade herb mixes.