Yep, and as Nathan said, there are many examples of scripting languages based on Java that work on this principle.
Is this something we want to adopt as a practice in Harmony for apps or development process? No, I think not. Regards, Tim Stefano Mazzocchi wrote: > Nathan Beyer wrote: >> I wasn't literally suggesting using JSPs, but rather the concept >> behind the technology -- dynamically loading a script with embedded >> Java, generating a complete Java source, compiling it and then loading >> the bytecodes. You can probably take the JSP engine from Tomcat and >> hack it into a more generalized launcher. > > Right. > > Take this: > > http://simile.mit.edu/repository/tools/loader/trunk/src/Loader.java > > and overload > > Class loadClass(String name, boolean resolve) > > merging it with something some code taken from > > http://tinyurl.com/r4rmf > > ship with the eclipse JDT compiler, stir up and you're done. > -- Tim Ellison ([EMAIL PROTECTED]) IBM Java technology centre, UK. --------------------------------------------------------------------- Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]