Always use sterilized jars and lids, ensure your canning equipment is in good condition ... specific processing methods to ensure a safe product that will last for months or even years.
The USDA and Ball (the company that produces most canning supplies, and a canning authority) both produce safe recipes to ...