Hi All,
It's my first time I try to use emulator from command line on windows 2000, but I haven't succeded yet.
Can someone tech me how to run application from jar and either from jad posting some example?
Thank u all!
Hi All,
It's my first time I try to use emulator from command line on windows 2000, but I haven't succeded yet.
Can someone tech me how to run application from jar and either from jad posting some example?
Thank u all!
${nokias60sdk_home}\bin\emulator.exe -classpath ${nokias60sdk_home}\tools\emulator.jar;${jarFileName}.jar -Xdescriptor:${jadFileName}.jad ${MidletClass}
replace ${} to your configurations.
Thank u!
But I have other questions....
1) If I have only jar files, I should use
${nokias60sdk_home}\bin\emulator.exe -classpath ${nokias60sdk_home}\tools\emulator.jar;${jarFileName}.jar ${MidletClass} , isn't it?
2) If I don't know ${MidletClass}, Can I look for the correct one opening the jar file?
3) Finally, is there an emulator for sis file?
the previous post referred to an
emulator.exe
file, but all i have in the S60 MIDP download is an emulator.jar
can anyone point me to where to get the emulator.exe for a series60 / 7650?
Thanks!
/dc
You'll find emultaor.exe in the package called "Series 60 MIDP SDK 1.0 for Symbian OS, Nokia edition" look at: http://www.forum.nokia.com/main/1,65...ml&fileID=2841
There's a .xml in that package from which you can decode the cmd line args.
Series_60_MIDP_SDK_for_Symbian_OS_v_1_0.xml and look near the end - you'll find a property called "runjadcommand" and you can probably figure out the cmd line from there.
I have an Ant target that runs my JAD in the emulator:
<target name="run">
<java classname="com.nokia.phone.sdk.Emulator" fork="true">
<classpath>
<pathelement path="${series60}/tools/emulator.jar"/>
<pathelement path="${series60}/tools/jmf.jar"/>
</classpath>
<jvmarg line="-Demulator.home='${series60}'"/>
<arg line="-jad 'build/bin/${project}.jad'"/>
</java>
</target>
You'll have to put in your own .jad of course. ${series60} points at the directory with the .xml file referred to above.
Now I have to figure out how to get the -debug options working...
great, that is a neat way of donig it. However it still takes about 90 seconds for everything to launch, even on a fairly speedy desktop PC. Is there a way of leaving the emulator running and just reloading the needed classFiles each time?
I also did the same thing as above with a hacky exe call.
<target name="emu" depends="build">
<exec
executable="D:\Java\Nokia\Devices\Series_60_MIDP_SDK_for_Symbian_OS_v_1_0\bin\emulator.exe" >
<arg line="-classpath D:\Java\Nokia\Devices\Series_60_MIDP_SDK_for_Symbian_OS_v_1_0\bin\tools\emulator.jar;${jarpath} -Xdescriptor:${jadpath}"/>
</exec>
</target>