The gun was found on Wednesday at the Fred W. Martin School in Jersey City.
The 12-year-old boy was arrested and was charged with unlawful possession of weapons and possession of firearms by a minor.
School officials say the student was suspended.
The School District has not yet released a statement.
----------
* More New Jersey news
* Send us a news tip
* Download the abc7NY app for breaking news alerts
* Follow us on YouTube