Skip to main content

mr4 without emulator..

5 replies [Last post]
gaganmalik
Offline
Joined: 2008-06-11

Hi,

I'm looking at phoneME after a year. I previously was fiddling around with MR2 to automate smoke testing for J2ME midlets. I've a few questions as I haven't understood MR4 completely..

(using phoneME feature MR4 on windows XP SP3, JDK 1.6, cyg4me)

1. I can no longer use the runMidlet.exe (in \midp\bin\i386\) to run a midlet. autotest.bat, autotestm.bat, installMidlet.bat, usertest.bat, etc.. all of which use runMidlet.exe throw out the error msg:

"[CRIT] [core ] Illegal argument to KVM: ..."

If I just execute 'runMidlet.exe' from the command line it says.. "Could not read environment variable SUBLIME_PROC_ID". I wonder if there's way to invoke this binary by setting up some command-line parameters / environment variables / etc..
(I assume emulator.exe does the same and calls runMidlet behind the scene).

2. Is there a way to build the MR4 implementation so that does not go through the emulator.exe and we can directly use runMidlet.exe? OKAY.. I might be missing something really crucial here, but I'm novice to this field.
So can anyone tell me what is the job of the emulator.exe here? Specifically because we don't have its source and to execute a midlet, it has to go through this emulator.exe binary.

3. If I stick to emulator.exe method to invoke the midlets, is there a way to specify additional jars via commandline to be included in the classpath.. eg. runMidlet in MR2 supported -classpathext parameter.

Any help is appreciated..
Thanks!

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
gaganmalik
Offline
Joined: 2008-06-11

Anyone??

gaganmalik
Offline
Joined: 2008-06-11

no one?

yevgenydiomidov
Offline
Joined: 2006-08-07

Hello Gagan,

You may run MR4 binaries using "Emulator Binary Files" that are there
https://phoneme.dev.java.net/content/mr4/download_feature.html
So, combining MR4 runtime and emulator plugin you would have the full product and would be able to run emulator.exe (that will launch runMidlet.exe).
Also, please refer to https://phoneme.dev.java.net/content/mr4/index_feature.html where is a link to the download page, as well as to other pages where you may find info how to run the emulator, for example http://java.sun.com/javame/reference/docs/sjwc-2.2/pdf-html/html/tools/c...

Regards,
Yevgeny

gaganmalik
Offline
Joined: 2008-06-11

I understand that I will have to launch the emulator.exe and I have been successful in doing so too. But my question was is there a way to bypass the emulator.exe?

The reason I'm asking this is because I have a few requirements:

1. I need to run the com.sun.midp.installer.AutoTester midlet and pass certain parameters to it, which I cannot do using the emulator.exe - Xautotest: option..

2. I also need to specify additional jars via commandline to be included in the classpath. runmidlet supports -classpathext commandline option, which I cannot use via the emulator.exe..

let me know.. I can explain in more detail, if you want..

Thanks for your time..

gaganmalik
Offline
Joined: 2008-06-11

... can someone help me with this?