Longtime New Jersey beachgoers were forced from their bungalows along the same strip of sand that Gov. Chris Christie kept all to himself during the recent budget impasse that shut down state parks.

The owners of seasonal shacks at Island Beach State Park were threatened with arrest if they didn’t vacate their summer retreats, according to the Star-Ledger.

Howard Height, whose family has kept its Jersey Shore getaway for more than 70 years, said park police knocked on his door Friday night and ordered him and his wife, Betty, out.

The couple had hauled in four days’ worth of food for the extended Fourth of July weekend.

“They’re good guys,” Howard said of the cops who gave him the heave-ho.

“They were just doing their job. But they said if we weren’t gone by midnight, we’d be arrested.”

Heights said another family — the Herberts, who’ve had a summer house for at least 60 years — also got the boot.

There are just six shacks left standing in Island Beach State Park out of about 100 that were allowed to remain after the state bought the beach for public use in 1953.

Owners pay $1,900 a year to lease the land under their bungalows, which have no water service or other utilities.

The beach is also home to a sprawling waterfront home — known as Ocean House — that was built for the park’s former owner, steel magnate Henry Phipps, who died in 1930.

The Cape Cod-style mansion is one of two residences, along with the Drumthwacket mansion in Princeton, available for use by the Garden State’s governor.

On Sunday, Christie and more than a dozen friends and relatives were infamously photographed soaking up the sun on its otherwise deserted beach.

The outgoing Republican faced waves of criticism over his greedy sand grab, but Christie defiantly vowed to return after signing off on a new budget hammered out by lawmakers Monday night.

“Whenever I get done tonight, I’ll go back to the beach. That’s where my family is and that’s where I’ll go back to,” he said.