File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java Micro Edition and the fly likes Trying to run hello world using J2ME -- Some basic questions Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "Trying to run hello world using J2ME -- Some basic questions" Watch "Trying to run hello world using J2ME -- Some basic questions" New topic
Author

Trying to run hello world using J2ME -- Some basic questions

J. Ryan
Greenhorn

Joined: Jul 24, 2006
Posts: 21
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.
Theodore Casser
Ranch Hand

Joined: Mar 14, 2001
Posts: 1902

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!
 
Don't get me started about those stupid light bulbs.
 
subject: Trying to run hello world using J2ME -- Some basic questions