posted 18 years ago
Yes, reflection gives you the methods for dynamically loading classes at runtime, and yes you can compile a class from within an application, so the parts are all there. It is not exactly simple.
You might find it a lot easier to use one of the scripting languages that can dynamically create scripts and be executed in the JVM. See Groovy, JPython, JRuby and probably a bunch more.
Bill