Plugins (1059)


Training and Consulting (44)



EPIC Poll

What is your favourite developer portal?

[ Results | Polls ]

Votes: 541
Comments: 0

Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
3lite
Post subject: MIDlet package creation  PostPosted: Sep 16, 2004 - 12:49 PM
Guest





I created a new project in Eclipse with the EclipseME plugin and the Sony Ericsson P900 J2ME wireless toolkit extension using the MIDP 2.0 platform. With my previous projects, I didn't have any problem deploying a package, but with this new project, I receive the following error when trying to execute the JAD file:

com.sun.kvem.midletsuite.InvalidJadException: Reason = 22
The manifest or the application descriptor MUST contain the attribute: MIDlet-1


Anybody have any ideas why this is happening?
 
   
Reply with quote Back to top
Guest
Post subject:   PostPosted: Oct 15, 2004 - 09:53 AM






I have had the same problem with NetBeans 4.0. Any help on this would be greatly appreciated
 
   
Reply with quote Back to top
Guest
Post subject:   PostPosted: Oct 15, 2004 - 10:05 AM






OK - I have it!

I'm kinda a newbie to this stuff and I'm using Netbeans 4.0 (the same guy as above) but i'm sure you'll find a way to do this on Eclipse:

For any Java application on a phone there is an application descriptor (JAD file) This has to have a list of all MIDlets (Executable Java files). All you need to do is list any executable files in this file.

In NetBeans - right click on the project and click Properties.
Under "Application Descriptor" - click "MIDlets"
Click "Add" and add any Java files that are executable in here.

Viola.
If you're using eclipse and this helps you work out how to fix your problem, post a way to do this on eclipse for other people. Thats how this thing works.
 
   
Reply with quote Back to top
Guest
Post subject:   PostPosted: Nov 04, 2004 - 11:40 AM






I had this same problem. Since I did a google search, this was the only place that even had this issue, so here's the answer:

You have to open up your jad file in eclipse and create a name, icon and classpath to your midlet.

Easy, right?
 
   
Reply with quote Back to top
Guest
Post subject:   PostPosted: Nov 09, 2004 - 02:37 PM






Check that in the jad file of your Midlet the property MIDlet-1 is defined. If not edit the file to add it
 
   
Reply with quote Back to top
Guest
Post subject:   PostPosted: Nov 12, 2004 - 04:52 PM






EclipseME has a JAD file editor. Use the midlets page to add your midlet to the JAD file.
 
   
Reply with quote Back to top
Guest
Post subject:   PostPosted: Feb 14, 2005 - 08:57 AM






I'm using Eclipse 3.0.1, and having the same problem mentioned above. Where do I set the MIDlet-1 property?? The application works fine with KToolbar and even with EclipseME. But when I'm trying to download it from my laptop using IRDA, it fails..

Håvard
 
   
Reply with quote Back to top
Guest
Post subject:   PostPosted: Mar 04, 2005 - 02:54 PM






Ok.. I got it.
Go to the jad file in Eclipse 3.0.1 and open it. You can see Midlets option page bottom of Application Description Editor.
Set Name, Icon(if you want), and class name.Save it and run!!!! Very Happy Very Happy

Jae
 
   
Reply with quote Back to top
Guest
Post subject:   PostPosted: Sep 24, 2005 - 04:26 PM






hi ppl...

H�vard... i have the sam problem! i added MIDlet-1 attribute to the .jad, and then it worked whit the WTK, but when i download it to my phone (Sony Ericsson K700) it says: Invalid Application?!?

HELP!
 
   
Reply with quote Back to top
Guest
Post subject:   PostPosted: Nov 11, 2005 - 01:34 PM






Dont know about the "invalid application", but I´ve just had the MIDlet-1 problem as well...
I also fixed it, by adding this line to the actual .JAD-file:
********************
MIDlet-1: Desc, ,Main
********************
- The "Desc" can be any description of your program (dont know about spaces?)
- The "empty space" can be used for a path to some icon.
- And the last "Main" is the method class that should be executed upon start...

Hope this helps ?!
 
   
Reply with quote Back to top
Guest
Post subject:   PostPosted: Feb 15, 2006 - 01:12 PM






MIDlet-1: ClassName, ,ClassName

Open yourjad.jad fixed it
 
   
Reply with quote Back to top
daisy_deepa
Post subject: The manifest or the application descriptor MUST contain the  PostPosted: Feb 01, 2007 - 12:09 AM



Joined: Feb 01, 2007
Posts: 1

hi,
I have the same problem while using Netbeans...
The manifest or the application descriptor MUST contain the attribute: MIDlet-1

Now it works fine
Thanku for the suggesstions
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 6 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits