aspose file tools*
The moose likes Java Micro Edition and the fly likes JAD file problem? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "JAD file problem?" Watch "JAD file problem?" New topic
Author

JAD file problem?

Theodore Casser
Ranch Hand

Joined: Mar 14, 2001
Posts: 1902

Morning, all.

I'm working on a "dinky" little app for a robotics team that I'm mentoring - just a little Java ME app to better facilitate scouting the other teams. The problem is that while I can load it using just the JAR file onto my PDA, I'm getting a 906 when I'm trying to load it using the JAD... and that means I'm not able to snag it on my cellphone. Any thoughts?

Specifically, my PDA's telling me that it can't see the MIDlet-Name attribute. :roll: So at least that's a start, but it looks standard...



Theodore Jonathan Casser
SCJP/SCSNI/SCBCD/SCWCD/SCDJWS/SCMAD/SCEA/MCTS/MCPD... and so many more letters than you can shake a stick at!
Mihai Fonoage
Ranch Hand

Joined: Feb 25, 2006
Posts: 39
Hi

Your jad file seems ok indeed. The only thing I can suspect is the difference between the Midlet-name and Midlet-1 values, which I think should both be ScoutMIDlet. Have you tried loading your application from an emulator using the jad and jar files?

Mihai
Theodore Casser
Ranch Hand

Joined: Mar 14, 2001
Posts: 1902

I had, which is the problem - it opens just fine using the WTK, so I was curious if perhaps there was some kind of odd tolerance. :-\

I'll give it a stab tomorrow with different values and see what happens.
Theodore Casser
Ranch Hand

Joined: Mar 14, 2001
Posts: 1902

No difference, unfortunately. :-\ I'm still getting missing MIDlet-Name attribute when I try to load it into J9 on the PDA, and a 906 on my phone. Just very strange, if you ask me.

I had tried trimming the value for MIDlet-Vendor and MIDlet-Description as well on concerns they were too long, but that doesn't seem to have done any good.
[ March 07, 2006: Message edited by: Theodore Casser ]
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17250
    
    6

Kind of like I was saying in your J9 Bluetooth thread. Devices don't implement the spec too well, and that can relate to JAD files. Some devices might need more in the JAD file, where some want less. They have differences with what is mandatory and what isn't.

This is where J2ME Polish comes in. It has an XML file with all that info, so that when you compile and make the jad and jars it does it right for your device.

Good Luck.

Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
Theodore Casser
Ranch Hand

Joined: Mar 14, 2001
Posts: 1902

Which is funny, since I'm planning on going the J2ME Polish route eventually, but just haven't had the time yet to deal with it. I've been more worried lately with just getting the app up and running before I worry about those kinds of things.

I have to admit, for as much as I like the idea of Java ME, I'm really beginning to notice that as I get into it, it's falling flat. It's very discouraging.
 
wood burning stoves
 
subject: JAD file problem?