DENVER — The man accused of opening fire on an Aurora movie theater told a classmate he wanted to kill people four months before the shooting, newly released court records allege.

Prosecutors made the allegation in a motion released Friday seeking access to James Holmes' records from the University of Colorado Denver's neuroscience graduate program.

Holmes "had conversations with a classmate about wanting to kill people in March 2012, and that he would do so when his life was over," attorneys for the state wrote. The student wasn't identified.

That alleged conversation would have occurred at roughly the same time that police have said Holmes began receiving "a high volume of deliveries" at his home and at the university. Police haven't said what those packages contained, but they said he ordered thousands of rounds of ammunition on the Internet.

The prosecution's allegation is the earliest report of a possible threat from Holmes, who was an enigma to many before authorities said he opened fire on a midnight showing of "The Dark Knight Rises" on July 20. Twelve people were killed and 58 were wounded.

Prosecutors allege Holmes also made unspecified threats to a professor in June, the same month in which they say he failed his year-end final. University officials say he left the program after the exam.

Holmes' attorneys argue that prosecutors should have no access to his student records. It's not clear whether Holmes' attorneys filed a response to the prosecution's allegations. Most filings in the case are sealed and none of the defense filings released Friday by the judge address the alleged threats.

The prosecution motion was filed last week but not released by the judge until Friday, a day after a court hearing in which prosecutors first asserted that Holmes had made threats. They didn't disclose any details about the threats then but did say that professors had sought to keep Holmes out of their labs and that "professors urged that he find another line of business."

A spokeswoman from the University of Colorado declined comment. Prosecutors and defense attorneys didn't return calls seeking comment.

Holmes' defense lawyer, Daniel King, has said Holmes is mentally ill and was seeing a psychiatrist at the university, setting up a possible insanity defense.

However, prosecutors are suggesting that Holmes was motivated by his anger that he was failing at school.

Chief Deputy District Attorney Karen Pearson told the judge Thursday that prosecutors need access to school records to establish motive by showing what Holmes hoped to accomplish at CU and the "dissatisfaction with what occurred in his life that led to this."

They also want to see records from campus police and a campus threat evaluation team similar to those established across the country after the 2007 Virginia Tech University shootings.

Prosecutors say they need the university documents to gain access to a notebook reportedly containing violent descriptions of an attack. The notebook was in a package Holmes sent to university psychiatrist Lynne Fenton.

She is expected to testify at an Aug. 30 hearing.

Also on HuffPost:

Loading Slideshow...
  • Jessica Ghawi

    Jessica Ghawi, a sports reporter who went by the name of Jessica Redfield, died at the scene of the shooting. Ghawi, 24, was dating minor league hockey player Jay Meloff, and had recently moved to Denver, Colorado from San Antonio Texas. "She was very smart and very funny," said Adrian Dater of The Denver Post. "Just a nice person." Just six weeks prior, Ghawi had survived a shooting at a Toronto mall on June 2 that left one person dead and seven injured. <a href="" target="_hplink">Read more about Jessica Ghawi here.</a>

  • Zak Golditch

    Zak Golditch, a rising senior at Gateway High School in Aurora, Colo. was sitting in a theater adjacent to where shooting began and was hit in the neck by a bullet that punctured the wall. He has now been released from the hospital. Golditch is a local football and track star, and hopes that his injuries will not prevent him from playing football in the fall.

  • Bonnie Kate Pourciau

    Bonnie Kate Pourciau, 18, a Baton Rouge, La, resident was on vacationing when she was wounded by a bullet that struck her knee. Pourciau, who will be starting college this fall, was attending the premiere with a Baton Rouge friend, Elizabeth Sumrall, who was not hurt.

  • Louis Duran

    Despite being shot in the head, leg, arm and chest, Louis Duran (L.) emerged from the hospital the day after the shooting. Jahlil Hall posed with him for this bedside photo after learning his friend would survive the massacre. Hall told ABC News that Duran skipped their weekly basketball game on Thursday night to attend the premier with two pals from high school.

  • Christopher Rapoza

    Christopher Raspoza of Brooklyn, NY, was grazed in the back by a bullet. He was attending the movie with his girlfriend, who was unharmed. He posted several pictures on Imgur from his hospital bed, including his bloody t-shirt and the gory bullet wound in his back.

  • Christopher Rapoza's Bloodstained Shirt

    While recovering in the hospital, Raspoza holds up his blood-soaked shirt from the night of the shooting.

  • Samantha Yowler and Matt McQuinn

    Ohio natives Samantha Yowler and her boyfriend, Matt McQuinn, were attending the premiere together when the shooting began. Both are 2004 graduates of Ohio high schools and now reside in Colorado, where they are both employed by Target. A co-worker describes the couple as "really fun people."

  • Gage Hankins

    Gage Hankins, an 18-year-old resident of Forest, Ohio, was shot in the arm and is expected to recover. The recent high school graduate was on a family vacation and was attending a movie with his younger brother. They were seated in a theater adjacent to where the gunman started shooting.