There is another part of the law that was written in n j a c 2C:39-5. That states
b.Handguns. (1) Any person who knowingly has in his possession any handgun, including any antique handgun, without first having obtained a permit to carry the same as provided in N.J.S.2C:58-4, is guilty of a crime of the second degree. (2) If the handgun is in the nature of an air gun, spring gun or pistol or other weapon of a similar nature in which the propelling force is a spring, elastic band, carbon dioxide, compressed or other gas or vapor, air or compressed air, or is ignited by compressed air, and ejecting a bullet or missile smaller than three-eighths of an inch in diameter, with sufficient force to injure a person it is a crime of the third degree.
In addition to that it states
g. (1) The temporary possession of a handgun, rifle or shotgun by a person receiving, possessing, carrying or using the handgun, rifle, or shotgun under the provisions of section 1 of P.L.1992, c.74 (C.2C:58-3.1) shall not be considered unlawful possession under the provisions of subsection b. or c. of this section.
And then this is the BIG one that pretty much excludes everything that you thought was OK the phrase is "nor receive" below.
2C:58-3. a. Permit to purchase a handgun. No person shall sell, give, transfer, assign or otherwise dispose of, nor receive, purchase, or otherwise acquire a handgun unless the purchaser, assignee, donee, receiver or holder is licensed as a dealer under this chapter or has first secured a permit to purchase a handgun as provided by this section.
I agree with Flat when he said said "if you are not absolutely sure of compliance", "consult an attorney" I disagree with looking at only one statute.