Well I don't know about NetBeans, but in the WTK you would need to select in the settings that the project was to include the WMA APIs. Messaging is not part of the standard MIDP2.0 specification, but is part of the JTWI specification. So you might also want to make that a requirement of the project.
Also don't forget to add permissions for calls to the WMA services, such as SMS. That would be an issue at runtime and would not get in your way for the compiling of your project.
Hope that helps. -Shawn
DFW J2ME Sig co-leader<br />Author: <a href="http://www.cafepress.com/sms_midp2" target="_blank" rel="nofollow">SMS for MIP2.0</a>
Joined: Jul 08, 2005
Thanks Shawn but all of that seems fine, within the project settings of NetBeans i have under Optional Packages Wireless Messaging API ticked and building project within NetBeans environment is fine, no error...
(i run a netbeans build to use debug, and polish to make use of it's UI stuff)
The problem comes with the ant run build.xml polish version, with it i'm assuming i have to include the wireless api in the classpath settings in the build.xml but it won't compile??