Deploying MIDlets
I've been playing with the mobility suite in Netbeans, writing some application for my cellphone. This seems to be pretty easy, since the mobility suite comes with an emulator in which you can test these MIDlets. Which is great.
Unfortunately, there is one slight problem: I can't seem to find out how I can deploy these MIDlets to my cellphone using bluetooth. Netbeans gives me the option of immediately deploying to a webserver, using a variety of protocols (WebDAV, FTP, or even SSH, just to name a few), and to just put them in a directory if that isn't enough. When I choose the latter, it puts two files in that directory; a .jar and a .jad. However, sending either of these files to my mobile phone doesn't work—it receives them, but does not recognize them properly.
It's probably possible to download them through the Intenet using WAP or similar technologies; but doing that involves connection costs, which is silly considering that I can send files to it through bluetooth. I'd like to do it that way if at all possible.
So, dear Lazyweb, I guess that leaves me with a question: is it possible to send Java MIDlets to my cellphone using bluetooth, and if so, what do I need to do?
Depends on your phone, some accept .jar and .jad files over bluetooth/usb/or memory cards. For the rest, the only way is putting the .jad and .jad file to a http server and downloading them with the cellphone. You can automate it by sending a "WAP push" message to your phone. Basicly a specially crafted sms with a link to the .jad file, and user will be prompted with "download application foo y/n" dialog.
Since bluetooth didn't work, your phone presumably falls into the latter category.
It has been a while since I played with J2ME. I never actually deployed my own midlets on any phone.
Have you actually tried putting the JAD file in the midlet itself? Say under META-INF or Jar's root directory.
See if this SE knowledge base article helps you. http://developer.sonyericsson.com/viewSolution.do?id=5456&serviceRequestId=5456
With my Nokia 6310i, I can install an application with appname.jar and appname.jad using $ gammu --nokiaaddfile Application appname I don't know how it works with non-Nokia phones though.