In order to integrate NetBeans IDE with the Nokia N97 SDK you also need to install NetBeans Mobility Pack.
Install NetBeans (see http://www.netbeans.org/downloads/index.html).
Install the NetBeans Mobility Pack (see http://www.netbeans.org/products/mobility/).
Start NetBeans and select Tools > Java Platform Manager.
The Java Platform Manager dialog opens:
In the Java Platform Manager, click Add Platform....
The Select platform type view opens:
In the Select platform type section, select Java Micro Edition Platform Emulator and click Next.
The Platform Folders view opens:
In the Platform Folders view, click Find More Java ME Platform Folders….
In the Choose directory to search for platforms dialog that appears, browse to the SDK installation directory and click Search.
NetBeans locates the Nokia N97 SDK :
Make sure the Nokia N97 SDK installation is checked in the Platform Folders list and click Next>.
NetBeans detects the Nokia N97 SDK platform, as displayed in the list of detected platforms, which appears:
Click Finish.
The Nokia N97 SDK is added to the detected platforms in NetBeans:
Click Close.
The Nokia N97 SDK has now been added to the NetBeans IDE.