Prosecutors also confirmed in court that CU officials reported the threats to police and cut off his key card, which gave him access to buildings at the Anschutz Medical Campus.

Karen Pearson, a chief deputy district attorney in Arapahoe County, said the actions were taken by CU around the time Holmes took and failed his important oral exams in his neuroscience program.

That test was scheduled June 7 — about six weeks before the theater attack.

Taken together, the revelations amount to the most extensive statement yet by prosecutors as to why they think Holmes committed the theater shooting early the morning of July 20 during the premiere of the new Batman movie, “The Dark Knight Rises.”

An important development in the case being made against James Holmes, the former grad student accused of carrying out a theater shooting that left 12 dead in Colorado last month.