Unopened ajvar in a jar can last for up to about 4 months. Once the jar is opened, it needs to be refrigerated and consumed within 7-10 days. If you notice green or whiteish spots on top of ajvar, discard it.