From: Vlad S. <ska...@gm...> - 2008-07-22 00:36:20
|
The code in API modules is STUBS and should not be executed! I use only proguard as open source preverifier and it worked fine. Probably they can't be used for WTK preverify. On Mon, Jul 21, 2008 at 5:39 PM, Diego Madruga Sandin < die...@gm...> wrote: > Hi Vlad, > > We tried to preverify one simple midlet using the WTK 2.5.2 preverifier, > but the result was the following: > > D:\temp-microemu\microemulator-2.0.3-SNAPSHOT\Test>preverify -classpath > ..\lib\cldcapi10.jar;..\lib\midpapi20.jar bin\Test.class > Error preverifying class java.lang.String > VERIFIER ERROR java/lang/Object.getClass()Ljava/lang/Class;: > Empty code > > > decompiling the code we've found that the Object class were generated with > empty methods (even the ones supposed to return something ) Do you have any > idea why? > > Thanks > Diego > > > > > On Mon, Jul 21, 2008 at 4:38 PM, Vlad Skarzhevskyy <ska...@gm...> > wrote: > >> Ok Diego, I added preverification to build process. >> Can you please try the latest version 2.0.3-SNAPSHOT (download form >> http://snapshot.microemu.org/) and tell me if it works for you! >> Regards, >> Vlad >> >> >> On Mon, Jul 21, 2008 at 2:33 PM, Diego Madruga Sandin < >> die...@gm...> wrote: >> >>> By default MTJ preverifies every MIDlet during the build process, and as >>> there are no stubs to be used during this preverify step, the build fail. >>> >>> Browsing the Internet I've found this interesting tutorial "* >>> http://javablog.co.uk/2008/01/17/j2me-development-on-os-x-revisited/*" >>> and there it instructed to create a stub folder with the libraries provided >>> by WTK. Changing the libraries provided by microemulator by the ones >>> embedded im WTK result in a sucessuful buld/run on MTJ. >>> >>> Since every wireless SDK provides preverified stubs of the APIs it >>> support, for example midp2.0 cldc1.0, i tought it would be nice to >>> microemulator to do the same. This Stubs would be used in the >>> preverification process on MTJ. >>> >>> >>> >>> >>> >>> On Mon, Jul 21, 2008 at 3:16 PM, Vlad Skarzhevskyy < >>> ska...@gm...> wrote: >>> >>>> In another words you want the api classes prepared by MicroEmulator to >>>> be preverified during MicroEmulator build? >>>> >>>> Are you sure that this needs to be done? They are not supposed to be >>>> loaded on device and are referenced only as library classes during >>>> preverification process of your MIDlet. Do you think this may be a bug in >>>> MTJ? Or may be you misconfigured MTJ ? >>>> >>>> On Mon, Jul 21, 2008 at 2:05 PM, Diego Madruga Sandin < >>>> die...@gm...> wrote: >>>> >>>>> Hi, >>>>> >>>>> I was testing MicroEmulator on eclipse MTJ and I could not compile and >>>>> run my MIDlet since the classes found on lib folder are not >>>>> preverified. Wouldn't it be interesting to supply precompiled >>>>> MIDP/CLDC stubs enabling this emulator to work with MTJ? >>>>> >>>>> regards >>>>> Diego >>>>> >>>>> >>>>> ------------------------------------------------------------------------- >>>>> 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 >>>> >>> >>> >> >> >> -- >> Vlad >> > > -- Vlad |