Wholesale copy of JarExecutor into here, now working on integration.