Rewrite classpath