From: David W. <da...@de...> - 2008-10-06 18:55:41
|
> 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/ |