The problem is that the class loader cannot load the inner class. For example, URLClassLoader assumes all requests are for outer classes.

Try this:...