J2ME – T610 Works!
After much pulling of hair and gnashing of teeth, I was able to discover what was causing my MIDlets on my Sony Ericsson T610 to declare “Invalid Application”. Since I was creating all of my project directories manually, I wasn’t entering these properties to the MANIFEST.MF:
MicroEdition-Configuration: CLDC-1.0 MicroEdition-Profile: MIDP-1.0
With the J2ME Wireless Toolkit, this is done within the Settings menu for each project, and actually comes prepopulated whenever you are smart enough to let it initialize the project for you.
Once I did that, then bluetooth uploads to my phone worked like a charm. It still sucks that T-Mobile won’t let you download JAD or JAR files from online, but at least I can get applications on it now.
On a related note, the book i’m reading by Michael Morrison, SAMS “Teach Yourself Wireless Java with J2ME in 21 Days” is actually very practical. It’s a little bit outdated at this point, so I had to adapt the Weather over HTTP MIDlet to use NanoXML so that I could parse the modern weather.gov RSS feeds, but that resulted in a better understanding of the underlying mechanisms anyway.
I’ll spruce it up a little bit when I learn how to store persistent settings so that you can pick a station ID. Once that’s done i’ll probably toss it up onto sourceforge for future improvement.

hey, have the same problem currently.. i´m pretty new to java 7 j2me, have just done a lot of processing and other stuff in the past and there fore just a probably dumb question, the manifest.mf, where can i find that and change it, have looked all over for it, as well as in the prefs of eclipse but wasn´t lucky to find anything. maybe you can give me some help for a beginner?
Hm, I worked through all of that in the J2ME Wireless Toolkit, not through eclipse. Does Eclipse just generate a finished jarfile for you? Because it’s probably inside the application jar if you can’t find it alone.
hey, thnks for your reply, eclipse is supposed to generate a finshed jar file that is then ready to download onto the t610…
Okay, unjar it using
jar xvf <jarfile, then look around for the MANIFEST.MF file inside there.I’m thinking that there may be a project properties setting within Eclipse, especially if it’s a special plugin that’s supposed to be used for J2ME.
hey gordon, figured it out, it was the was icreated that .jar file. now i´m trying to figure out abother thing on j2me, maybe you know something about it… if you want to create an array that it then mixed around, there´s a collection.shuffle methos in the java.lang, but on j2me it´s missing, you have an idea how to shuffle numbers stored in an array around? thnks
Daniel, how did you solve this problem with Eclipse? I still get “Invalid application” on my K700.
Hi, i am using wtk 2.0 and building a project using midp2.0 push registry. it works fine after downloading in nokia or siemens mobile. but i was unable to download the .jad file in my sony ericsson k700i. does anyone have any idea about what’s wrong?
regards –Saikat
I was also getting this invalid application problem. I am using eclipse to build jar. the solution is….if u r using wtk21 then use javacomplier 1.4 and if using wtk2o use 1.3, or check by changing different combination. i hope it will work for u also.
lol, hello daniel, just a bit bored during the night so I’ll post some kind of solution for your shuffle (affirming that this post is way old):
public class Shuffle{ private Random random = new Random();
public static void shuffle(int[] array){ for(int i = 0; i