Hi,

This is probably a stupid and really easy question to answer, but I'm new to NetBeans and J2ME.

I have a Bluetooth app, that works fine and I even created a Desktop App in NetBeans, but porting over to Mobility and J2ME is proving a little more difficult!

I (finally) created the interface and the basic ItemCommands I need, but in the main MIDlet I'm having trouble calling my functions.

Two main problems I'm having... (one not code related)

1. I have my java app and its method is:

Code:
public class DeviceInformation {

	/*
	 * Send Carriage Return after every AT command as they will not run without
	 * a return sent!
	 */
	private static final String cr = "\r";

	 public static void main (String[] args)throws IOException,
			InterruptedException {
                DeviceInformation dvi = new DeviceInformation();
                dvi.executeDeviceInformation();
        }
        
        public List executeDeviceInformation ()throws IOException,
			InterruptedException 
        {
//Rest of code here...
Then in the MIDlet code, the ItemCommand reference is automatically created and is:

Code:
  //<editor-fold defaultstate="collapsed" desc=" Generated Getter: itemCommand11 ">
    /**
     * Returns an initiliazed instance of itemCommand11 component.
     * @return the initialized component instance
     */
    public Command getItemCommand11() {
        if (itemCommand11 == null) {
            // write pre-init user code here
            itemCommand11 = new Command("Device Info : IMEI", Command.ITEM, 0);
            // write post-init user code here
        }
        return itemCommand11;
    }
    //</editor-fold>
Do I simply call the method the same way I did in Desktop App within the post-init, e.g.:

Code:
@Action
    public void hack4() {
       try {
            DeviceInformation dvi = new DeviceInformation();
            List ls = dvi.executeDeviceInformation();  
            String entries = "IMEI Number \n";
            for (Iterator it = ls.iterator(); it.hasNext();) {
                String entry = (String)it.next();
                entries+=entry+"\n";
                
             
                
                
            }
           
           jTextArea1.setText(entries);
           
        }
        catch(IOException ex)
        {
            //
        }
        catch(InterruptedException ex)
        {
            //
        }
        finally 
        {   
            // System message could go here...
        }
               
         
    }
Obviously minus the Action bit and the public void call etc...

I'm a little confused, any pointers would be great! Plus, the previous was using jTextArea, but I'm not sure how to output the responses to the screen. Do I use TextItem?

Finally (sorry for big email) second issue is in compile. I'm getting errors from the libs I've included, its gripiping with the following:

Code:
Preverifying 1652 file(s) into C:\Documents and Settings\Mark\My Documents\NetBeansProjects\BlueAT_Attack\build\preverified directory.
Error preverifying class com.intel.bluetooth.btgoep.Connection
    java/lang/NoClassDefFoundError: com/ibm/oti/connection/CreateConnection
C:\Documents and Settings\Mark\My Documents\NetBeansProjects\BlueAT_Attack\nbproject\build-impl.xml:431: Preverification failed with error code 1.
BUILD FAILED (total time: 22 seconds)
Any help is much appreciated!

Thanks,
DG.