Click here to Skip to main content
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 17-Apr-13 0:25am

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

  Print Answers RSS
0 OriginalGriff 304
1 Maciej Los 285
2 Sergey Alexandrovich Kryukov 230
3 Shweta N Mishra 186
4 Aajmot Sk 153
0 OriginalGriff 7,660
1 Sergey Alexandrovich Kryukov 7,072
2 DamithSL 5,604
3 Manas Bhardwaj 4,986
4 Maciej Los 4,760


Advertise | Privacy | Mobile
Web02 | 2.8.1411023.1 | Last Updated 17 Apr 2013
Copyright © CodeProject, 1999-2014
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