[mobility] HelloMidlet error

  • From: "erdy_rezki" < >
  • To:
  • Subject: [mobility] HelloMidlet error
  • Date: Tue, 17 Jul 2012 11:48:56 -0400


Code:
 package Hello;
import javax.microedition.midlet.*;
import javax.microedition.lcdui.*;

public class HelloMidlet1 extends MIDlet implements CommandListener
{
    Display display;
    Command exitCommand = new Command ("Exit", Command.EXIT,1);
    Alert helloAlert;
    public HelloMidlet1()
    {
 helloAlert = new Alert("Hello MIDlet","Hello, world!", null, AlertType.INFO);
 helloAlert.setTimeout(Alert.FOREVER);
 helloAlert.addCommand(exitCommand);
 helloAlert.setCommandListener(this);
}
public void startApp (Displayable helloAlert)
{
   if (display == null)
{
      display = Display.getDisplay(this);
}
display.setCurrent(helloAlert);
}
public void pauseApp()
{
}
public void destroyApp(boolean unconditional)
{
}
public void commandAction(Command c, Displayable d)
{
     if (c == exitCommand)
     {
        destroyApp(true);
        notifyDestroyed();
    }
  }

    protected void startApp() throws MIDletStateChangeException {
    }




Copying 1 file to C:\kumpulan 
testingan\HelloMidlet1\dist\DefaultColorPhone\nbrun5335807865066855327
Copying 1 file to C:\kumpulan 
testingan\HelloMidlet1\dist\DefaultColorPhone\nbrun5335807865066855327
Jad URL for OTA execution: 
http://localhost:8083/servlet/org.netbeans.modules.mobility.project.jam.JAMServlet/C%3A/kumpulan+testingan/HelloMidlet1/dist/DefaultColorPhone/HelloMidlet.jad
Starting emulator in execution mode
Installing suite from: http://127.0.0.1:3383/HelloMidlet.jad
[WARN] [rms     ] javacall_file_open: _wopen failed for: C:\Documents and 
Settings\user\javame-sdk\3.0\work\0\appdb\_delete_notify.dat

*** Error ***
A problem occured during deploying application from 
http://127.0.0.1:3383/HelloMidlet.jad
Reason:
Corrupt JAR, error while reading: hello/HelloMidlet1.class
C:\kumpulan testingan\HelloMidlet1\nbproject\build-impl.xml:915: Execution 
failed with error code 1.
BUILD FAILED (total time: 11 seconds)






[mobility] HelloMidlet error

erdy_rezki 07/17/2012

Project Features

About this Project

Mobility was started in November 2009, is owned by dstrupl, and has 36 members.
By use of this website, you agree to the NetBeans Policies and Terms of Use (revision 20140418.2d69abc). © 2013, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo
 
 
Close
loading
Please Confirm
Close