Click here to Skip to main content
11,923,046 members (63,424 online)
Rate this:
Please Sign up or sign in to vote.
See more: Java SE 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.

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);

public void pauseApp()



public void destroyApp(boolean unconditional)



public void commandAction(Command choice, Displayable displayable)

if (choice == quitCommand)




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
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.151125.3 | 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