Hi, First, I'm sorry for being off-topic, but I have no idea where it would be on-topic, so I write it here. Besides, at least some of you will be interested. I'm starting another project - run-time compiled java, which I would like to develop into stable beta and then donate to ASF.
There would be two classes, CompileUnit and CompileContext. First, you create a CompileContext, initialize it with working dir and classpath, then you create CompileUnit, initialize it with CompileContext and a .java file. Then, you can call .prepare() or .compile() to compile the file, and .newInstance() to create an instance or .getClass() to get Class. Or you could use Class.forName(), since in most cases CompileContext's classpath would be active classpath. I'm sure you see the similarity to .JSP now. While it may seem basic, having API for this wouldn't hurt. Possible scenario: Supponse, there's some kind of mail server with *extremely* complicated rule-set in form of 200kb+ xml. Why not take it, convert it into .java implementing some interface, convert it to java source with hundreds if not more ifs and cases, and load it as compiled code. What I need: since JDK 1.4b2, tools.jar just isn't what it used to be... so I need some kind of 100% java java compiler. And, I have no idea where to search for one. Of course, there's dozens, but it must be both stable and compatible with JDK 1.1 - 1.4. Greetings, deacon Marcus p.s. Is it ok for me to use org.apache.jjc (or org.apache. whatever) before I officialy donate it, assuming I won't be distributing it before donating anyway?