If it is clojure code doing the printing through *err* you could just bind *err* instead of using System/setErr.