From: Vlad S. <ska...@gm...> - 2008-10-06 19:24:32
|
Applet do not support multiple class loaders. Also you can't change bytecode in applet/ On 10/6/08, David Welton <da...@de...> wrote: > > Save for web is adding the new class and also adding the use of this > > class into bytcode. > > > Ok. I managed to work my way through the source code and see what > it's doing. Pretty clever! > > > > Calls to System.getProperty(), System.out, System.err and > > getResourceAsStream are redirected to MicroEmulator Injected class. > > This can't be done at Applet runtime. > > > Next best thing: some code like the following in a standalone .class > or .jar or whatever: > > public static void main(String[] args) { > try { > File output = new File(... new file name ...); > AppletProducer.createMidlet(... old file name ..., output); > } catch (Exception ex) { > System.err.println("Error: " + ex.toString()); > } > } > > I'm going to build one for myself, but it might be useful to other people too. > > Incidentally - why can't it be done at run time? Limitations in the > applet model? > > > > The svn for MicroEmulator is at sf.net and was not moved. We are > > going to maintain this version until Harmony will make a Release of > > new MicroEmulator. > > > Cool, thanks! > > > -- > > David N. Welton > > http://www.welton.it/davidw/ > > http://www.dedasys.com/ > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Microemulator-users mailing list > Mic...@li... > https://lists.sourceforge.net/lists/listinfo/microemulator-users > -- Vlad |