Former New England Patriots tight end Aaron Hernandez wrapped up a lengthy pre-trial hearing on Monday.

The ex-NFL star made his final appearance at Bristol County Superior Court before his upcoming murder trial, reports CBS Boston. Prosecutors also announced that his murder trial is expected to last for six to 10 weeks, beginning with jury selection on Jan. 9.

The prosecution added that they anticipate calling about 45 witnesses to the stand, including Patriots owner Robert Kraft and head coach Bill Belichick.

Hernandez is currently being held in jail without bail in the shooting death of his friend Odin Lloyd in June 2013.

Earlier this month, a judge ruled that text messages sent by Lloyd to his sister moments before he was killed cannot be used as evidence in the trial.

Prosecutors argued that the texts indicate that Lloyd, a semi-professional football player who was dating the sister of Hernandez's fiancée, was afraid of Hernandez minutes before he was fatally shot at an industrial park near Hernandez's mansion.

The messages were sent while Lloyd was in a car with Hernandez. One message said: "U saw who I'm with," while another indicated the person was "NFL," referring to Hernandez, reports the Associated Press.

After hearing arguments, Judge E. Susan Garsh stated that the theory that Lloyd was in fear is "clearly in the realm of speculation" and "does not comport with common sense." She went on to say the texts did not suggest any hostility and that prosecutors failed to meet the burden to prove Lloyd felt he was at an "imminent death."

In addition, Judge Garsh ruled that prosecutors cannot bring up the 25-year-old ex-NFL star's other murder charges in the 2012 drive-by slayings of two men. He was charged with fatally shooting the men over a spilled drink at a Boston nightclub, reports ESPN Boston. Hernandez has pleaded not guilty in both cases.

Prosecutors have suggested that Hernandez was motivated to kill Lloyd after he may have showed him the spot where the double shooting allegedly took place. The judge, however, said there is no correlation between the two crimes.

Furthermore, Garsh ruled that prosecutors may not introduce the shooting of Alexander Bradley, a former associate of Hernandez, who has filed a lawsuit accusing the ex-player of shooting him in the face in 2013 after an argument in Florida.