Run your application from the BlackBerry Java Plug-in for Eclipse

  1. Click Run > Debug Configurations.
  2. Create a new BlackBerry Simulator launch configuration and type in a name.
  3. On the Projects tab, select the projects that you want to launch.
  4. On the Simulator tab, click General.
  5. In the Device dropdown list, select a simulator (for example: SimPackage-6.0.0.313_9800-9800). To learn how to install the simulator package, see Install the BlackBerry Smartphone Simulator package.
  6. Click the Advanced tab:
    1. Select the Use Customized command options check box.
    2. In the Customized command line box, type the arguments from the sim1.bat file. For example, "C:\Program Files\Research In Motion\BlackBerry Smartphone Simulators 6.0.0\6.0.0.313 (9800)\fledge.exe" /handheld=9800 /app-param=JvmAlxConfigFile:9800.xml /pin=0x2100000A /data-port=0x4d44 /data-port=0x4d4e /session=9800 /app="C:\Program Files\Research In Motion\BlackBerry Smartphone Simulators 6.0.0\6.0.0.313 (9800)\Jvm.dll" /app=Jvm.dll /handheld=9800 /session=Sim1 /app-param=JvmAlxConfigFile:9800.xml /data-port=0x4d44 /data-port=0x4d4e /pin=0x2100000A /app-param=regVersion=3 /app-param=regDestIP=127.0.0.1 /app-param=regDestPort=19781 /app-param=regSrcPort=19780 /app-param=DisableSyncServiceRecord /title="BlackBerry 9800-1 Simulator"
    3. In the Customized working directory box, type path of the directory where you installed the simulator package.
    4. In the Customized MDS directory box, type the path of the directory where you installed the MDS simulator package.
    To learn how to install the MDS Simulator package, view Install and run the BlackBerry MDS Simulator.
  7. To save the settings, click Apply.
  8. Click Debug.

Was this information helpful? Send us your comments.