Environmental Protection Department spokesman Larry Ragonese says it appears that the 6-month-old cub found the animal crackers jar in a trash can in a Ringwood neighborhood.
As the 28-pound animal tried to eat what remained in the jar, he apparently pulled the jar over his head and it got stuck.
The cub became spooked when approached and went up a nearby tree, but got wedged about 40 feet up.
DEP staffers arranged netting in case the bear fell to the ground. After the animal was tranquilized by a DEP biologist, it was brought down and local firefighters gingerly cut the jar off its head.