Java Programming - Generate a class from a string

Hi,Is it possible to generate a class from a string and use replection ?I have a string "public class ... and I want to use reflection on it without creating a .class fileIf it's not possible, how do I create a .class file ?
[253 byte] By [dekely@amdocs.coma] at [2007-11-26 23:11:40]
# 1

yes, it can be done. you can spit the string out to a .java file, and compile it either by spawning a new process to run javac on it, or you could use the javac facade in tools.jar, or I believe - but may have been misinformed - that the javac facade is in the JDK itself as of 1.6. you'd then have to load the class dynamically

georgemca at 2007-7-10 14:08:54 > top of Java-index,Java Essentials,Java Programming...