Officials said they had to help the hungry cookie-lover, who must have found the large plastic jar of animal crackers in the trash.
"He was trying to eat what remained in the jar and pulled the jar over his head," said New Jersey Department of Environmental Protection spokesman Larry Ragonese. "He got spooked and went up into the tree."
Workers from the Department of Environmental Protection climbed up the tree, tranquilized the bear and brought him back down to safety. Then they cut the jar off of his head.
Black bears are the largest land mammals in New Jersey.
Celebrity Breakups and divorces of 2014 [PHOTOS]