I assume you are getting some sort of link error for the missing getstbinfo() method. Native methods for MIDP and midlets are implemented as KNI methods. When running on CDC/CVM, KNI methods are implemented as CNI methods with special KNI macros, so when missing you probably see the method name as CNIgame_lib_StbInfo_getbsdinfo.
The way to get the KNI native method so it can be built for CLDC or CDC is to use the KNIDECL macro. You can find it in kni.h, but there is a different version of the header depending on whether you are building for CLDC or CDC. For CDC, make sure you are using the one in cdc/src/share/export/kni.h. You should be able to find plenty of examples of the use of KNIDECL in the midp source.
Your use of this web site or any of its content or software indicates your agreement to be bound by these Terms of Participation.
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners.