From: Marcel R. <mr...@ma...> - 2007-08-03 16:07:56
|
Hi again, i have an eclipseme project, this works fine to debug with microemu. But when i add custom properties in the Jad file, these don't make it into the midlet during debugging. When debugging with WTK emulators these jad attributes are nicely passed to the emulator. Is there any way to pass the attributes with microemu? Thanks Marcel -- Marcel Ruff http://www.xmlBlaster.org |
From: Rushabh D. <ra...@pe...> - 2007-08-03 21:23:36
|
Enter --usejadproperties YourJad.jad This works in 2.0.2 snapshot builds. I'm not sure if it was backported to 2.0.1. Bartek? -Rushabh -----Original Message----- From: mic...@li... [mailto:mic...@li...] On Behalf Of Marcel Ruff Sent: Friday, August 03, 2007 8:51 AM To: mic...@li... Subject: [Microemulator-users] Using jad with eclipseme Hi again, i have an eclipseme project, this works fine to debug with microemu. But when i add custom properties in the Jad file, these don't make it into the midlet during debugging. When debugging with WTK emulators these jad attributes are nicely passed to the emulator. Is there any way to pass the attributes with microemu? Thanks Marcel --=20 Marcel Ruff http://www.xmlBlaster.org ------------------------------------------------------------------------ - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Microemulator-users mailing list Mic...@li... https://lists.sourceforge.net/lists/listinfo/microemulator-users |
From: Marcel R. <mr...@ma...> - 2007-08-04 16:38:54
|
Rushabh Doshi wrote: > Enter > --usejadproperties YourJad.jad > > This works in 2.0.2 snapshot builds. I'm not sure if it was backported > to 2.0.1. Bartek? > Thanks. Unfortunately my identical midlet does not start with 2.0.2 (but does with 2.0.1). It complains: ava.lang.NoClassDefFoundError: org/xmlBlaster/I_Properties at java.lang.Class.getDeclaredConstructors0(Native Method) at java.lang.Class.privateGetDeclaredConstructors(Class.java:2357) at java.lang.Class.getConstructor0(Class.java:2671) at java.lang.Class.newInstance0(Class.java:321) at java.lang.Class.newInstance(Class.java:303) at org.microemu.app.Common.startMidlet(Common.java:351) at org.microemu.app.Common.initMIDlet(Common.java:870) at org.microemu.app.Main.main(Main.java:705) The I_Properties resides in a dependend project in eclipseme (this runs fine with WTK and microemu 2.0.1), thanks Marcel > -Rushabh > > -----Original Message----- > From: mic...@li... > [mailto:mic...@li...] On Behalf Of > Marcel Ruff > Sent: Friday, August 03, 2007 8:51 AM > To: mic...@li... > Subject: [Microemulator-users] Using jad with eclipseme > > Hi again, > > i have an eclipseme project, this works fine to debug with microemu. > But when i add custom properties in the Jad file, > these don't make it into the midlet during debugging. > > When debugging with WTK emulators these jad attributes are nicely > passed to the emulator. > > Is there any way to pass the attributes with microemu? > > Thanks > Marcel > > -- Marcel Ruff http://www.xmlBlaster.org |
From: Rushabh D. <ra...@pe...> - 2007-08-04 21:15:43
|
Ah. Funny classpath issues :) --usesystemclasspath Note that this will not catch certain classpath issues that the new stuff will, but then again, you're (eventually) testing on a real phone, right :) -R -----Original Message----- From: mic...@li... [mailto:mic...@li...] On Behalf Of Marcel Ruff Sent: Saturday, August 04, 2007 9:39 AM To: mic...@li... Subject: Re: [Microemulator-users] Using jad with eclipseme Rushabh Doshi wrote: > Enter > --usejadproperties YourJad.jad > > This works in 2.0.2 snapshot builds. I'm not sure if it was backported > to 2.0.1. Bartek? > =20 Thanks. Unfortunately my identical midlet does not start with 2.0.2 (but does=20 with 2.0.1). It complains: ava.lang.NoClassDefFoundError: org/xmlBlaster/I_Properties at java.lang.Class.getDeclaredConstructors0(Native Method) at java.lang.Class.privateGetDeclaredConstructors(Class.java:2357) at java.lang.Class.getConstructor0(Class.java:2671) at java.lang.Class.newInstance0(Class.java:321) at java.lang.Class.newInstance(Class.java:303) at org.microemu.app.Common.startMidlet(Common.java:351) at org.microemu.app.Common.initMIDlet(Common.java:870) at org.microemu.app.Main.main(Main.java:705) The I_Properties resides in a dependend project in eclipseme (this runs=20 fine with WTK and microemu 2.0.1), thanks Marcel > -Rushabh > > -----Original Message----- > From: mic...@li... > [mailto:mic...@li...] On Behalf Of > Marcel Ruff > Sent: Friday, August 03, 2007 8:51 AM > To: mic...@li... > Subject: [Microemulator-users] Using jad with eclipseme > > Hi again, > > i have an eclipseme project, this works fine to debug with microemu. > But when i add custom properties in the Jad file, > these don't make it into the midlet during debugging. > > When debugging with WTK emulators these jad attributes are nicely > passed to the emulator. > > Is there any way to pass the attributes with microemu? > > Thanks > Marcel > > =20 --=20 Marcel Ruff http://www.xmlBlaster.org ------------------------------------------------------------------------ - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Microemulator-users mailing list Mic...@li... https://lists.sourceforge.net/lists/listinfo/microemulator-users |
From: Marcel R. <mr...@ma...> - 2007-08-05 09:30:53
|
Hmm, no success here. This works fine (with SNAPSHOT): java -cp ~/microemulator/microemulator.jar org.microemu.app.Main xy.jad But when started in the debugger (eclipseme), i get the same error which i have reported. This is my eclipse 'VM arguments' settings: -D--usesystemclasspath=true -D--usesystemclasspath=1 -D--usesystemclasspath= -D--usesystemclasspath -D--usejadproperties=/data/xy.jad I think it is a bug in the current SNAPSHOT? Thanks Marcel Rushabh Doshi wrote: > Ah. Funny classpath issues :) > > --usesystemclasspath > > Note that this will not catch certain classpath issues that the new > stuff will, but then again, you're (eventually) testing on a real phone, > right :) > > -R > > -----Original Message----- > From: mic...@li... > [mailto:mic...@li...] On Behalf Of > Marcel Ruff > Sent: Saturday, August 04, 2007 9:39 AM > To: mic...@li... > Subject: Re: [Microemulator-users] Using jad with eclipseme > > Rushabh Doshi wrote: > >> Enter >> --usejadproperties YourJad.jad >> >> This works in 2.0.2 snapshot builds. I'm not sure if it was backported >> to 2.0.1. Bartek? >> >> > Thanks. > Unfortunately my identical midlet does not start with 2.0.2 (but does > with 2.0.1). > > It complains: > ava.lang.NoClassDefFoundError: org/xmlBlaster/I_Properties > at java.lang.Class.getDeclaredConstructors0(Native Method) > at java.lang.Class.privateGetDeclaredConstructors(Class.java:2357) > at java.lang.Class.getConstructor0(Class.java:2671) > at java.lang.Class.newInstance0(Class.java:321) > at java.lang.Class.newInstance(Class.java:303) > at org.microemu.app.Common.startMidlet(Common.java:351) > at org.microemu.app.Common.initMIDlet(Common.java:870) > at org.microemu.app.Main.main(Main.java:705) > > The I_Properties resides in a dependend project in eclipseme (this runs > fine with WTK and microemu 2.0.1), > > thanks > Marcel > >> -Rushabh >> >> -----Original Message----- >> From: mic...@li... >> [mailto:mic...@li...] On Behalf >> > Of > >> Marcel Ruff >> Sent: Friday, August 03, 2007 8:51 AM >> To: mic...@li... >> Subject: [Microemulator-users] Using jad with eclipseme >> >> Hi again, >> >> i have an eclipseme project, this works fine to debug with microemu. >> But when i add custom properties in the Jad file, >> these don't make it into the midlet during debugging. >> >> When debugging with WTK emulators these jad attributes are nicely >> passed to the emulator. >> >> Is there any way to pass the attributes with microemu? >> >> Thanks >> Marcel >> >> >> > > > -- Marcel Ruff http://www.xmlBlaster.org |
From: Rushabh D. <ra...@pe...> - 2007-08-07 00:47:38
|
Note that the two arguments are microemulator arguments and *not* java vm arguments. Thus, in my case, my eclipse run stuff, has the following as *program* arguments: --usesystemclassloader --propertiesjad Foo.jad com.bar.foo.FooMIDlet HTH, -R -----Original Message----- From: mic...@li... [mailto:mic...@li...] On Behalf Of Marcel Ruff Sent: Sunday, August 05, 2007 2:31 AM To: mic...@li... Subject: Re: [Microemulator-users] Using jad with eclipseme Hmm, no success here. This works fine (with SNAPSHOT): java -cp ~/microemulator/microemulator.jar org.microemu.app.Main xy.jad But when started in the debugger (eclipseme), i get the same error which i have reported. This is my eclipse 'VM arguments' settings: -D--usesystemclasspath=3Dtrue -D--usesystemclasspath=3D1 -D--usesystemclasspath=3D -D--usesystemclasspath -D--usejadproperties=3D/data/xy.jad I think it is a bug in the current SNAPSHOT? Thanks Marcel Rushabh Doshi wrote: > Ah. Funny classpath issues :) > > --usesystemclasspath > > Note that this will not catch certain classpath issues that the new > stuff will, but then again, you're (eventually) testing on a real phone, > right :) > > -R > > -----Original Message----- > From: mic...@li... > [mailto:mic...@li...] On Behalf Of > Marcel Ruff > Sent: Saturday, August 04, 2007 9:39 AM > To: mic...@li... > Subject: Re: [Microemulator-users] Using jad with eclipseme > > Rushabh Doshi wrote: > =20 >> Enter >> --usejadproperties YourJad.jad >> >> This works in 2.0.2 snapshot builds. I'm not sure if it was backported >> to 2.0.1. Bartek? >> =20 >> =20 > Thanks. > Unfortunately my identical midlet does not start with 2.0.2 (but does=20 > with 2.0.1). > > It complains: > ava.lang.NoClassDefFoundError: org/xmlBlaster/I_Properties > at java.lang.Class.getDeclaredConstructors0(Native Method) > at java.lang.Class.privateGetDeclaredConstructors(Class.java:2357) > at java.lang.Class.getConstructor0(Class.java:2671) > at java.lang.Class.newInstance0(Class.java:321) > at java.lang.Class.newInstance(Class.java:303) > at org.microemu.app.Common.startMidlet(Common.java:351) > at org.microemu.app.Common.initMIDlet(Common.java:870) > at org.microemu.app.Main.main(Main.java:705) > > The I_Properties resides in a dependend project in eclipseme (this runs=20 > fine with WTK and microemu 2.0.1), > > thanks > Marcel > =20 >> -Rushabh >> >> -----Original Message----- >> From: mic...@li... >> [mailto:mic...@li...] On Behalf >> =20 > Of > =20 >> Marcel Ruff >> Sent: Friday, August 03, 2007 8:51 AM >> To: mic...@li... >> Subject: [Microemulator-users] Using jad with eclipseme >> >> Hi again, >> >> i have an eclipseme project, this works fine to debug with microemu. >> But when i add custom properties in the Jad file, >> these don't make it into the midlet during debugging. >> >> When debugging with WTK emulators these jad attributes are nicely >> passed to the emulator. >> >> Is there any way to pass the attributes with microemu? >> >> Thanks >> Marcel >> >> =20 >> =20 > > > =20 --=20 Marcel Ruff http://www.xmlBlaster.org ------------------------------------------------------------------------ - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Microemulator-users mailing list Mic...@li... https://lists.sourceforge.net/lists/listinfo/microemulator-users |
From: Vlad S. <ska...@gm...> - 2007-08-07 02:12:44
|
I don't think we have System property "--usesystemclasspath". argument to main yes. As to integration into EclipseME this is the issue of integration. Need to ask EclipseME developers to fix this. Also you reported two problems: 1) additional library in MIDlet from additional project - This goes to EclipseME submit them a BUG. Ask them to add --appclasspath for each additional project they use in launching of me2 (! IF they are not linked in final MIDlet JAR) N.B. MAKE sure that your project are marked as Exported (in "Order and Export" of Java Build Path) 2) reading jad attributes. This also the question of integration. I'll get more details and .... -- Vlad PS Nothing is ever "backported" all goes only to new version. |
From: Rushabh D. <ra...@pe...> - 2007-08-07 03:26:24
|
Vlad is totally right. Its *not* a system property, it is an argument to main.=20 -Rushabh -----Original Message----- From: mic...@li... [mailto:mic...@li...] On Behalf Of Vlad Skarzhevskyy Sent: Monday, August 06, 2007 7:13 PM To: mic...@li... Subject: Re: [Microemulator-users] Using jad with eclipseme I don't think we have System property "--usesystemclasspath". argument to main yes. As to integration into EclipseME this is the issue of integration. Need to ask EclipseME developers to fix this. Also you reported two problems: 1) additional library in MIDlet from additional project - This goes to EclipseME submit them a BUG. Ask them to add --appclasspath for each additional project they use in launching of me2 (! IF they are not linked in final MIDlet JAR) N.B. MAKE sure that your project are marked as Exported (in "Order and Export" of Java Build Path) 2) reading jad attributes. This also the question of integration. I'll get more details and .... -- Vlad PS Nothing is ever "backported" all goes only to new version. ------------------------------------------------------------------------ - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Microemulator-users mailing list Mic...@li... https://lists.sourceforge.net/lists/listinfo/microemulator-users |
From: Marcel R. <mr...@ma...> - 2007-08-07 12:57:27
|
I've found the solution now, this works fine (eclipseme 1.7.3): In the 'Debug View' -> Choose 'Arguments' tab and enter to "Program arguments": ======================= --propertiesjad /data/My.jad org.xmlBlaster.MyMidlet ======================= Thanks for all your help Marcel Rushabh Doshi wrote: > Vlad is totally right. Its *not* a system property, it is an argument to > main. > > -Rushabh > > -----Original Message----- > From: mic...@li... > [mailto:mic...@li...] On Behalf Of > Vlad Skarzhevskyy > Sent: Monday, August 06, 2007 7:13 PM > To: mic...@li... > Subject: Re: [Microemulator-users] Using jad with eclipseme > > I don't think we have System property "--usesystemclasspath". argument > to main yes. > > As to integration into EclipseME this is the issue of integration. > Need to ask EclipseME developers to fix this. > > Also you reported two problems: > 1) additional library in MIDlet from additional project - This goes > to EclipseME submit them a BUG. > Ask them to add --appclasspath for each additional project they use > in launching of me2 (! IF they are not linked in final MIDlet JAR) > > N.B. MAKE sure that your project are marked as Exported (in "Order > and Export" of Java Build Path) > > > 2) reading jad attributes. This also the question of integration. I'll > get more details and .... > > -- > Vlad > > PS > Nothing is ever "backported" all goes only to new version. > > ------------------------------------------------------------------------ > - > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > Microemulator-users mailing list > Mic...@li... > https://lists.sourceforge.net/lists/listinfo/microemulator-users > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > Microemulator-users mailing list > Mic...@li... > https://lists.sourceforge.net/lists/listinfo/microemulator-users > > -- Marcel Ruff http://www.xmlBlaster.org |