07-17-2009 08:31 PM
I compiled my application and put it on my web server. I have the MIME types for cod, jar, and jad all set up. The problem is that when I try to install the jar file, half way through I get get an error saying "MIDlet-1" is missing.
My entry for MIDlet-1 is:
What is supposed to go here so that I can install the jar?
07-19-2009 12:40 AM
07-20-2009 03:21 AM
Check this Thread.
07-20-2009 09:33 AM
That thread was one of the ones confusing me, lol. I saw that one and a couple other ones where it looked like mime types in there and/or the location of their images in that MIDlet-1 entry. After throwing stuff for a while I finally thought about looking at Sun's website on MIDP programming and sure enough it was right there: "The MIDlet-1 attribute has three parameters: name, icon, and class."
When I tried MyApp,,MyApp it was erroring because my main class name was not MyApp. I was just trying to put stuff in to make it work.
So I was able to get past that part but then was immediatly having another issue that got me equally frustrated. This time while it was installing OTA, it would error out again this time with a 500 error. So I had to look at my web server's log file to see why it was throwing a 500 error and it said that my blackberry was trying to access "myapp-1.cod". I noticed an entry for "myapp-1.cod" was in my JAD file and every time I try to sign my application, it tries to sign "myapp-1.cod". I took a chance and editied my JAD file in notepad and removed
RIM-COD-SHA1-1: 00 00 00 ...
After doing this, my OTA installations were working finally. My next question now however is, if I am doing everything through the JDE, isn't the JDE supposed to do all of this for me? Why is the JDE creating incomplete JAD files when I build my project? And why is there this "applicationName-1.cod" that gets created? If its not needed when doing installs OTA, why is there a reference to it ever made in the JAD file?