Updated

The University of Texas announced Wednesday it will allow concealed handguns in classrooms, but will bar them from on-campus dorm rooms, under the new state law.

Texas universities had been gun-free zones under the state’s previous concealed handgun laws, but a Republican-dominated Legislature voted last year to force public universities to allow license holders to bring their guns to campus starting Aug. 1.

"I do not believe handguns belong on a university campus, so this decision has been the greatest challenge of my presidency to date," University of Texas President Greg Fenves said in announcing his decision to adopt rules recommended by a campus study group in December. Fenves opposes allowing guns on the roughly 50,000-student campus.

Fenves’ recommendation that handguns should be banned from on-campus dorm rooms could be rejected or altered by the university’s Board of Regents, according to the Dallas Morning News. If they are approved then handguns will be allowed most offices and off-campus residence halls in addition to classrooms.

Fenves said his revised measure brings a balance between the law passed by the Legislature and addressing concerns of students, faculty and other staff who have opposed the so-called “campus carry” measure, according to the Morning News.

“I empathize with the many faculty members, staffers, students and parents of students who signed petitions, sent emails and letters, and organized to ban guns from campus and especially classrooms,” he said. “As a professor, I understand the deep concerns raised by so many. However, as president, I have an obligation to uphold the law.”

State lawmakers allowed public universities to carve out some gun-free zones as long as it didn't result in a campus-wide ban. Fenves said a blanket ban on guns in classrooms would have violated the law.

Gun-rights activists had insisted that the right to have weapons on a college campus falls under the Second Amendment and they call it a critical self-defense measure.

Private schools, including Baylor, Rice, Southern Methodist and Texas Christian, have opted to keep banning weapons on campus, Fenves noted. State lawmakers allowed public universities to carve out some gun-free zones as long as it didn't result in a campus-wide ban.

In most cases, a person must be 21 years old to get a gun license in Texas, which trims the gun-carrying student population a bit. And while licensed students will be allowed to bring their handguns to class, they won't be able to do so openly. A separate law that allows the open carry of handguns doesn't apply to college campuses.

Laboratories will remain gun-free, as will areas or events that involve school-age children. State law still prohibits weapons at sporting events.

Guns will generally be banned from dorm rooms, but they will be allowed in residence hall common areas such as dining rooms and study areas.

Family members who are licensed to carry can keep their weapons when visiting students. University staff members who are licensed to carry may also hold onto their weapons if they must enter a dorm.

The rules now go to the University of Texas System Regents for review. If no changes are made within 90 days, the rules will be final.

The Associated Press contributed to this report.

Click for more from The Dallas Morning News.