A Korean student fractured her skull after jumping from a 15ft window to escape an intruder, a court has heard.
The student had been working in an office at the university
Kyungsim Chung feared the 19-year-old, who was high on drink and drugs and armed with a pair of scissors, would injure her in the study room.
Erik-Lee Cameron was jailed for three-and-a-half years at Aberdeen Sheriff Court after admitting breaking into Aberdeen University's Taylor building.
He also pleaded guilty to assaulting a man earlier on the same day.
The offences were committed while Cameron, who has 28 previous convictions including robbery, was on bail.
His lawyer said he apologised unreservedly to his victims.
Defence lawyer Peter Shepherd said: "He (Cameron) wishes to apologise unreservedly to the victims for his actions that day.
"While he did not know the complainer would jump out the window, he accepts it was his fault because she was so scared.
"He is genuinely remorseful but accepts these are serious matters and that the court has one realistic option - and that is custody."
Aberdeen University has reviewed its security procedures as a result of the incident.