Set up classpath and stop over a socket connection