From: Jan W. <Jan...@et...> - 2009-11-13 08:20:42
|
Hi, > -----Ursprüngliche Nachricht----- > Von: Brady McCary [mailto:bra...@gm...] > Gesendet: Donnerstag, 12. November 2009 19:45 > An: Alan Kennedy > Cc: jyt...@li... > Betreff: Re: [Jython-users] Compile xxx.py to Java Class then run > without Jython.jar ? > > 1. jython.jar: the runtime. > 2. jython-lib.jar: the compiled contents of the jython Lib directory. > 3. app.jar: my app. > Yes, you are able to do this! I develop JavaME application which cannot load external classes/jar files. Whatever jar you execute, it has to be self-contained. Thus, you'd need to put the whole jython.jar class files in you JavaME jar which results in a extremely large file. It would be nice (if possible) to split up the jython.jar in to at least two components, one thats necessary for runtime execution of precompiled jython class files and one for "the rest" (i.e. parser, compiler, interactive prompt etc.). You could still provide an out-of-the-box jython.jar additionally. Jan |