Philip Chism was 14 at the time of his arrest. His lawyer challenged the Massachusetts law allowing children as young as 14 to be charged as adults, arguing it is unconstitutional.
"Children are different," she said.
Judge Howard Whitehead said he had no grounds to rule in favor of Chism. He said Denise Regan, Chism's attorney, could appeal to the state or U.S. courts or urge the legislature to change the law.
Chism allegedly raped and killed Colleen Ritzer, 24, in a bathroom at Danvers High School and dumped her body in woods near the school. He was arrested a few hours later.
He faces juvenile charges in Boston of attacking a woman counselor while he was being held at detention facility there.