A 23-year old man was taken into custody Wednesday morning after allegedly threatening several students in Robarts library and claiming to have a gun.

Police said the man was yelling and screaming, and a university media alert indicated he had accessed multiple floors of the library.

Concerned students and staff called campus police and Toronto Police Services to the scene. The unidentified man was arrested outside the library at 130 St. George. No gun was found.

Criminal charges including threatening bodily harm are pending against the 23-year-old, who is not a student at the University of Toronto. The man is due to appear in court Thursday morning.

The incident took place as students filled libraries on campus in preparation for exams and finals.

Media representatives from U of T and the U of T Community Police were not immediately available for comment.

More as this story develops.