Wayne Chapman has pleaded not guilty to charges of open and gross lewdness and lewd, wanton and lascivious acts. Prosecutors say Chapman exposed himself and masturbated in the view of prison staff.
A Middlesex Superior Court Judge on Wednesday set Chapman's bail at $25,000.
Chapman's lawyer said he has no money and can't post bail.
Chapman's arrest came as officials were preparing for his release after two experts ruled he is no longer sexually dangerous.
Chapman was convicted in 1977 of sexually assaulting young boys he lured into the woods. He's been civilly committed since his prison term ended in 2004.
Copyright 2018 The Associated Press. All rights reserved. This material may not be published, broadcast, rewritten or redistributed.