Setting up the sample application in the BlackBerry JDE

Install the device-side sample application

  1. Visit http://www.blackberry.com/go/gpssample to download the sample application.
  2. Extract the zip file.
  3. On the taskbar click Start > Programs > Research In Motion > BlackBerry JDE 4.7.0 > JDE.
  4. Open the workspace that you want to add the sample application to.
  5. In the workspace tree, right-click the project that you want to add the sample application to.
  6. Click Add project to <workspace directory>.
  7. In the Add project to <workspace> dialog box, browse to the folder where you extracted the sample application.
  8. Click the GPSDemo.jdp file.
  9. Click Open.
  10. In the workspace, expand the gpsdemo project.
  11. Double-click GPSDemo.java.
  12. In the GPSDemo.java file, replace the value of the constant _hostName with the name of the server that is running the server-side gpsdemo application.

Run the sample application

  1. In the workspace where you added the gpsdemo project, right-click gpsdemo.
  2. Click Build project.
  3. On the taskbar, click Start > Applications > Research in Motion > BlackBerry JDE 4.7.0 > Device Simulator.
  4. On the Home screen of the BlackBerry® Smartphone Simulator, click the Downloads folder.
  5. Click the gpsdemo icon.
  6. On your computer, browse to the folder where you extracted the sample application.
  7. In the server folder, double-click run.bat to open the server-side sample application.

Was this information helpful? Send us your comments.