Re: [appengine-java] Re: Creating/Compiling new Java class at run time

2011-03-11 Thread Toby Reyelts
If you want users to type Java code directly into your webapp and then compile it, you'll need an embeddable Java compiler, like Janino. Another possible alternative might be JDT . One other alternative you might consid

[appengine-java] Re: Creating/Compiling new Java class at run time

2011-03-11 Thread Rick Smith
Hi Toby I know that I can dynamically load class using Class.forName But What if I want to crate a new Java class at run time. What I said that I want my developers(that is my clients too) to create Busienss Logic at run time. and I do not want to re deployment of my application. For my application

Re: [appengine-java] Re: Creating/Compiling new Java class at run time

2011-03-11 Thread Toby Reyelts
jesbox, You can dynamically load classes using Class.forName or even your own custom ClassLoader. As Jay noted, this is how dynamic languages like Groovy, JRuby, and Rhino work, and they run perfectly well on App Engine. Rick, The real question is what compiler/runtime do you need to try to get

[appengine-java] Re: Creating/Compiling new Java class at run time

2011-03-11 Thread jesbox
I'm not sure about the idea. Sounds like giving a rocket launcher to a kid. You let the adaptation happen in the full development environment made for professional programmers. If the re-deployment does not work out, will your framework reset the GAE invisibly to the user? And so on. Then there i

[appengine-java] Re: Creating/Compiling new Java class at run time

2011-03-08 Thread Jay Young
I dunno about this. The different JVM language runtimes (JRuby, Rhino, Groovy, etc) all generate and run bytecode on the fly. I don't know if you can cache that generated byte code and re-execute it later, though that seems like it'd be a shortcoming of the interpreter, not the App Engine env

[appengine-java] Re: Creating/Compiling new Java class at run time

2011-03-08 Thread Didier Durand
Hi, Even if you solve the File I/O issue, I would guess that you may then face security issue: Google has probably protected its instances against execution of code not coming direcly from the war file... Anyway, very interesting question: pls, let us konw how you progress. regards didier On M

[appengine-java] Re: Creating/Compiling new Java class at run time

2011-03-08 Thread Larry Cable
On Mar 8, 8:35 pm, Larry Cable wrote: > On Mar 7, 12:13 am, Rick Smith wrote: > > > Hi all > > > Can I create and compile a java class at run time on goolge > > appengine. > > Use case: I have given a UI to my application user that they can > > define their own business logic.Now what is going

[appengine-java] Re: Creating/Compiling new Java class at run time

2011-03-08 Thread Larry Cable
On Mar 7, 12:13 am, Rick Smith wrote: > Hi all > > Can I create and compile a java class at run time on goolge > appengine. > Use case: I have given a UI to my application user that they can > define their own business logic.Now what is going to be main challenge > is that I need to make new dep

Re: [appengine-java] Re: Creating/Compiling new Java class at run time

2011-03-08 Thread Vinny
Offhand, I don't think this would be possible as you would be at least creating a new .class file. GAE allows no File I/O. -- biz: http://www.linkedin.com/in/vincentstoessel/ personal: http://xaymaca.tumblr.com/ On Mon, Mar 7, 2011 at 10:55 PM, Rick Smith wrote: > Any update guys? > > On Mar 7

[appengine-java] Re: Creating/Compiling new Java class at run time

2011-03-07 Thread Rick Smith
Any update guys? On Mar 7, 1:13 pm, Rick Smith wrote: > Hi all > > Can I create and compile a java class at run time on goolge > appengine. > Use case: I have given a UI to my application user that they can > define their own business logic.Now what is going to be main challenge > is that I need