NEW YORK - A man who confessed to strangling 6-year-old Etan Patz, whose disappearance 34 years ago remains one of the nation's most baffling missing-persons cases, will stand trial for the boy's murder, a judge ruled Wednesday.

Judge Maxwell Wiley's decision came over the objections of the lawyer defending Pedro Hernandez, whose confession last year was a stunning twist in a case that galvanized national attention to the plight of missing children and introduced the idea of putting missing kids' pictures on milk cartons.

Defense attorney Harvey Fishbein says that Hernandez suffers from severe psychiatric problems, has a low IQ and confessed only after several hours of interrogation by police. All of those factors make his confession suspect, Fishbein said.

"We … are arguing that his confession is a false confession. People confess to things that they did not do for a number of reasons," Fishbein told reporters outside the courthouse in Manhattan after Wiley rejected his motion to dismiss the charges against Hernandez.

He was present for the cout hearing. Fishbein said Hernandez had been receiving psychiatric treatment in jail.

Hernandez, 52, of Maple Shade, N.J., pleaded not guilty in December to kidnapping and murdering Etan on May 25, 1979, when Hernandez was working at a market near the boy's home in Manhattan's SoHo neighborhood.

He had told police he lured Etan into the store with promises of a soda, strangled him, and disposed of his body in an alley.

The body was never found, and Fishbein said there was no evidence pointing to Hernandez.

Etan vanished while walking to the bus stop to go to school, the first time his parents had allowed him to walk to the bus alone.

His face became one of the first to appear on milk cartons as efforts to find him and other missing children sparked a national campaign for more aggressive efforts to solve such cases.

Hernandez's next court appearance was scheduled for July 31. No trial date has been set.