The jar itself needs to be airtight, with a tight seal around the lid. If this isn't already in place, then you'll need to choose or purchase a different container that does have an airtight seal around the lid, such as a jar with a screw-top lid or a plastic seal with a clip.