So fire the prosecutor and get another one. Why drop the charges?
Presumably the charges were dropped because the prosecutor’s comments prejudiced potential jurors. Probably he isn’t supposed to comment that way, just say they have evidence, etc.
Total jerks, prosecutor and judge. Is the prosecutor an elected official?