> 11.3.1 | NetBeans IDE 5.0, NetBeans 5.5 or NetBeans 5.5.x

> Integration for NetBeans IDE 5.5 and 5.5.x is only supported for TC65. The described steps for using Netbeans IDE 5.0 are identical for NetBeans IDE 5.5 and Netbeans 5.5.x.
> This section indicates the changes to your IDE you will see after integrating the SMTK and describes how to exploit these features to build and debug your applications.
> All installed emulators can be found using the NetBeans IDE 5.0 menu
> Tools → Java Platform Manager. See Figure 31.
> Figure 31: NetBeans IDE 5.0 - installed emulators

> 11.3.1.1 | Switching Emulator to IMP-NG Emulator

> You can switch to the SMTK emulator project dependent using the context menu for project properties (e.g. "Hello Sample" <properties>) and select the emulator platform and the device e.g. “Siemens IMP-NG TC65 R2 Wireless Toolkit” and “IMP_NG_TC65_R2” for TC65 Release 2. See Figure 32.
> Figure 32: NetBeans IDE 5.0 - Switching to IMP-NG emulator

> 11.3.1.2 | Templates

> Templates for a Siemens MIDlet can be found in the file explorer and under NetBeans IDE 5.0 menu File → New File... The MIDlet template provides the skeleton of an IMP-NG MIDlet application.
> The New File wizard opens. Select category “IMP-NG” and File Type “IMP-NG MIDlet” and press the Next button for working with this skeleton.
> Figure 33: NetBeans IDE 5.0 - Selecting an IMP-NG MIDlet template (e.g. project “Test”)

> 11.3.1.3 | Examples

> There are three IMP-NG MIDlet sample projects (“HelloSample”, “NetDemo” and “RS232Sample”) included. Each sample project can be selected directly in NetBeans IDE 5.0.
> You can open the sample project (e.g. “HelloSample”) using the NetBeans IDE 5.0 menu File → New Project... The New Project wizard opens. Select Category Samples → Mobile → IMP-NG and select (e.g. “Hello World Example”). Press the Next button.
> Figure 34: NetBeans IDE 5.0 - selecting sample project “Hello World Sample”
> Figure 35: NetBeans IDE 5.0 - confirmation of sample project “Hello World Sample”
> Press the Finish button to end the selection of the sample project.
> Note: Keep in mind, that if you are selecting the "HelloWorld-Sample" you have to choose the used emulator after loading the "HelloWorld-Sample".
> Please select project properties in the "HelloWorld" project’s context menu and choose the emulator (e.g. "TC65_R3") for the Java debugging session. Otherwise NetBeans 5.x indicates a reference problem, because it does not know, which kind of emulator has to be used!

> 11.3.1.4 | Compile and Run

> Ensure that the proper emulator will be used and compile the project as normal. Any output will be shown in the output window in the IDE together with some debugging information of the IDE. The html help files of the SMTK can be accessed directly by pressing Alt+F1.

> 11.3.1.5 | Starting Debug Session without Downloading Java Files

> It is possible to start a debugging session without download of the Java files (*.jad and *.jar) again. The emulator has to be started with an additional parameter “-noload” and downloading of the Java files is suppressed.
> If you like to suppress downloading of *.jar and *.jad file, please use the project context menu Properties, select category “Running” and type in “-noload” as extra parameter for the emulator as shown in the following figure:
> Figure 36: NetBeans IDE 5.0 - add emulator option “-noload” (e.g. project “HelloSample”)
> Keep in mind that you have to remove this emulator option before starting debugging session with download of Java files. The Java files are not updated in the Flash Files System of the module while option “-noload” is set!
> Note: This feature is not working in current NetBeans IDE 5.0 or NetBeans IDE 5.5.11 version (included on the SMTK CD).

> 11.3.1.6 | Displaying Java "System.out" in NetBeans IDE window

> Please prepare redirection of Java “System.out” during a debugging session as described in Section 11.5 Switching Java “System.out” to IDE debug window.
> The Debugging Console tab of the NetBeans IDE window is selected by default after starting the debugging session.
> To display the Java “System.out”s after starting the debugging session select the “build.xml (debug)” tab as shown in the below figure:
> Figure 37: NetBeans IDE 5.0 - Displaying Java “System.out” in NetBeans IDE window

> 1
> Supported for TC65 only.