Attribute 'MIDlet-Name' is different in Jad and Jar files

82 views
Skip to first unread message

anop...@gmail.com

unread,
Dec 13, 2013, 9:54:57 AM12/13/13
to codenameone...@googlegroups.com
I'm building for J2ME platform and this is the first time I face the following message in my device when installation is trying to take place:
"Attribute 'MIDlet-Name' is different in Jad and Jar files" OK

How can I correct this? 

Shai Almog

unread,
Dec 13, 2013, 2:25:03 PM12/13/13
to codenameone...@googlegroups.com, anop...@gmail.com
What's the content of your jad file?
Unzip your jar and extract the manifest.mf file, what's its content?

anop...@gmail.com

unread,
Dec 18, 2013, 3:51:39 AM12/18/13
to codenameone...@googlegroups.com, anop...@gmail.com
MANIFEST.MF:
Manifest-Version: 1.0
Ant-Version: Apache Ant 1.9.1
Created-By: 1.7.0_45-b18 (Oracle Corporation)
MIDlet-Vendor: Vendor
MIDlet-Name: J2ME
MIDlet-Version: 1.0
MicroEdition-Configuration: CLDC-1.1
MicroEdition-Profile: MIDP-2.0

Still getting the same error..

Shai Almog

unread,
Dec 18, 2013, 12:20:53 PM12/18/13
to codenameone...@googlegroups.com, anop...@gmail.com
Is it identical to what you have in the jad?
The MIDlet does seem completely incorrect, did you use our build servers?

anop...@gmail.com

unread,
Jan 7, 2014, 9:50:42 AM1/7/14
to codenameone...@googlegroups.com, anop...@gmail.com
Happy New Year to all!

I'm using Eclipse and need to make a copy of my old CN1 project. 

When I do so and I build on server (without making any changes) the build works fine on mine device. 

However, if I change something (anything) in the theme.res file and I send the code to the server again I get a popUp alert frame indicating: "Application start-up failed" with 2 options "OK" and "Details".

I'm not really sure if this is taking place only in my code but the workaround I discovered is to reset the initial form.

Shai Almog

unread,
Jan 7, 2014, 2:47:02 PM1/7/14
to codenameone...@googlegroups.com, anop...@gmail.com
Hi,
please open a new thread for a new unrelated question.

I'm guessing you changed the initial frame of the app and once you save the res file the statemachine base is regenerated with a broken first form.
Select the first form of your app in the designer, go to Misc in the tabs and make it the initial form. Save.
Reply all
Reply to author
Forward
0 new messages