A state of emergency was declared Thursday for parts of New Jersey's coastal counties during a major storm threatening to dump a foot of snow in the area.