"For the NJ side, you have lot of options but the coastal route is nice. Stick right be the coast through seaside heights; then cut over to toms river, take route 9 through Tuckerton. You then must cut inland to lower bank, where you can cross the river. Then you have a choice; inland route straight down, or take the route 30 bridge to Atlantic city and go down the coast to wildwood before cutting across to the ferry."
Cutting over to Toms River from Seaside Heights requires going over the route 37 bridge. This one, like many bridges along the NJ shore, is forbidden to bicycles. You are expected to walk along the narrow sidewalk. I have ridden over some of the short bridges anyway but this one is a problem. As I recall it had no shoulder and was mighty long - some 3 miles - and heavily trafficked. I'm not familiar with the route 30 bridge to Atlantic City and would really like to hear if it is passable on a bicycle.
As Joshie said, you can cut inland at Tuckerton but you can also go through New Gretna before cutting inland to the bridge at Lower Bank or Green Bank.