Click here to Skip to main content
15,881,588 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi , I am learning J2ME programming. I am getting error "
com.sun.kvem.midletsuite.InvalidJadException: Reason = 22 The manifest or the application descriptor MUST contain the attribute: MIDlet-1
" While I running programme.

and I several time got this error in eclipse --
ERROR - AMS - 2 - Installation failed: Invalid JAD Exception, reason: 29, message: Reason = 29


any one can suggest me solution for this problem. How to get out put with JavaMEPhone1 ??
My code Is below.

Quote:
package greeting;

import javax.microedition.midlet.*;

import javax.microedition.lcdui.*;

public class newmobile extends MIDlet implements CommandListener

{

private Display display;
private TextBox textBox;
private Command quitCommand;

public void startApp()

{
display = Display.getDisplay(this);
quitCommand = new Command("Quit",Command.SCREEN,1);
textBox = new TextBox("Hello World","My First MIDlet",40,0);
textBox.addCommand(quitCommand);
textBox.setCommandListener(this);
display.setCurrent(textBox);
}

public void pauseApp()

{

}

public void destroyApp(boolean unconditional)

{


}

public void commandAction(Command choice, Displayable displayable)
{

if (choice == quitCommand)

{

destroyApp(false);
notifyDestroyed();

}
}

}
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900