JBuilder Project Setup

 

Introduction

For debugging, JBuilder uses JDK commands (for example -Xdebug) that are available in JDK 1.3 or higher. In case you use JDK 1.1.8 for development (which is necessary to test the compatibility with the PDA platform) you have to switch to JDK version 1.3.x for debugging. For information how to select the JDK version, see JDK Version Information.

<MI_Home> refers to the folder in which the Mobile Infrastructure is installed (default is C:\Program Files\SAP Mobile Infrastructure).

Debugging

  1. Change the JDK version of your project to JDK 1.3.x. For details, see JDK Version Information.
  2. Because of differences in the classloader between JDK 1.1.8 and JDK 1.3.x, you have to add the file MEl.jar, located in the folder <MI_Home>\webapps\me\WEB-INF\lib, to your project libraries. Your project must contain the jar files from <MI_Home>\lib folder and the MEl.jar file from te <MI_Home>\webapps\me\WEB-INF\lib folder.
    When you switch back to JDK 1.1.8, remove the <MI_Home>\webapps\me\WEB-INF\lib\MEl.jar file from your project.

  3. Recompile your project .
  4. Set breakpoints at the lines were you want to stop the programm.
  5. Start debugging with the JBuilder command Run > Debug project.
  6. When MI Client has started open a web browser.
  7. Start MI Homepage (http://localhost:4444) to logon and adjust your initial settings.
  8. Start your mobile application with the URL (for example, http://localhost:4444/CookbookExample/MECookbook).