×

Discussion Board

Results 1 to 7 of 7
  1. #1
    Registered User
    Join Date
    May 2003
    Posts
    3

    Running Series 60 Emulator from command line

    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!

  2. #2
    Registered User
    Join Date
    May 2003
    Posts
    1
    ${nokias60sdk_home}\bin\emulator.exe -classpath ${nokias60sdk_home}\tools\emulator.jar;${jarFileName}.jar -Xdescriptor:${jadFileName}.jad ${MidletClass}

    replace ${} to your configurations.

  3. #3
    Registered User
    Join Date
    May 2003
    Posts
    3
    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?

  4. #4
    Registered User
    Join Date
    May 2003
    Posts
    3

    java or .exe emulator?

    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

  5. #5
    Registered User
    Join Date
    May 2003
    Posts
    3
    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

  6. #6
    Registered User
    Join Date
    Apr 2003
    Posts
    3
    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...

  7. #7
    Registered User
    Join Date
    May 2003
    Posts
    3
    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>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×