Trying to run hello world using J2ME -- Some basic questions
posted 9 years ago
I am completely new to mobile development. I created a simple hello world program using netbeans 5.0's mobility pack. I uploaded the jar file to my site and then tried downloading it to my cell phone (a Samsung D357). My cell phone then says "Java Error. Attribute mismatch." What am I doing wrong? I'm also quite confused about what files are needed on the site. Is the jar file like an executable file, or do I need some other files as well?
I'm sorry if this is a more advanced board, but I haven't been able to find any good directions anywhere on the Internet aimed at someone trying to learn mobile development. Thanks for any input.
Attribute Mismatch can mean just about anything - my Sanyo I2300 is very picky on the files, even when they seem perfectly matched.
You might try it without the JAD file, see if it can find the JAR alright without it. Failing that, just double-check the manifest inside your JAR and make sure it has all the required attributes.
As for the 'more advanced'... it's not so much that there's not a lot of good directions out there, but there are just not a lot of developers in the mobile area that are putting the resources up. I personally learned from the "Beginning J2ME" book from Apress.
Theodore Jonathan Casser
SCJP/SCSNI/SCBCD/SCWCD/SCDJWS/SCMAD/SCEA/MCTS/MCPD... and so many more letters than you can shake a stick at!