Click here to Skip to main content
11,706,455 members (55,370 online)
Rate this: bad
good
Please Sign up or sign in to vote.
See more: J2ME
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 16-Apr-13 23:25pm

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

  Print Answers RSS
0 OriginalGriff 192
1 Sergey Alexandrovich Kryukov 141
2 chainerlt 110
3 ppolymorphe 71
4 Mika Wendelius 70
0 OriginalGriff 9,070
1 Sergey Alexandrovich Kryukov 8,413
2 CPallini 5,189
3 Maciej Los 4,746
4 Mika Wendelius 3,676


Advertise | Privacy | Mobile
Web02 | 2.8.150819.1 | Last Updated 17 Apr 2013
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100