Lemon juice has a long shelf life because it is highly acidic, but once you open a container of it, you must refrigerate it to prevent it from spoiling within hours. Unopened canned or bottled lemon juice can stay good for as long as 18 months in the pantry.