J2ME Development Howto??
I'm starting into some J2ME development using the latest Selena build #7087. Because I'm new to J2ME I looked for docs. It seems the documentation section for J2ME has a bunch of test junk in it. Could someone point me in the direction of a good tutorial using Idea for J2ME? I setup a project/module and guessed at what goes in the J2ME module settings. I put the path to the midpapi21 jar (C:/WTK2.5.1/lib/midpapi21.jar) in the MIDlet jar URL box and I created paths that don't exist for the jar/jad file boxes under mobile build settings. That got me far enough to run the app but it crashes with an error:
ALERT: java/lang/ClassFormatError: Bad version information.
whenever I run it. Could somebody please help? Thanx!
Cliff
Please sign in to leave a comment.
Hello Cliff,
Seems that you already configured J2ME module with J2ME SDK assigned to it.
ME SDK contains libraries and javac etc to build and run your mobile application.
Settings for ME module are all about your mobile application. After build
process these settings will be put in your .jad file. So you can read corresponding
SUN tutorial. (They are: what midlets do you want to include, how to pack
them (in YourMidlets.jar), where to put this jar? etc)
Thank you for your attention
-
Anna Kozlova
JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"
Anna,
Thanx but why the error? Do I have the wrong version of the midpAPI jar included? Is there something else wrong? Why is the documentation under Idea's help menu full of test data? I'm reading the Sun tutorials and getting no quick answers. (I had to inferr the meaning of the JAD file... it seems it works sorta like a Manifest.) I really need more help on this. Something as simple as a start to finish J2ME tutorial using Idea or video webcast would be great.
Cliff
Cliff,
Path to jar file means path to your result jar file. This path will be used
in jad file.
Such errors may occur when you use jdk1.5 or higher (WTK as far as I know
supprts only 1.4 or 1.3)
Unfortunately we haven't special J2ME tutorials. What do you mean of "test
data"? I hope that help will be updated soon
Thank you
-
Anna Kozlova
JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"
Anna,
Thank you so much for replying. I'm using the same JDK (version 1.5) in IntelliJ that I used when I did my first HelloSuite using only the WTK. It worked there and my code has only changed slightly for the project in Idea. I'l try an earlier version if necessary. I gether that I set most of my module up correctly with the possibility of an incorrect JDK but I'm really looking for just some quick and dirty this is how you create a MIDlet with Idea..." example. Something I can x-reference with the work I've done already or use to start over from scratch. I'll probably post my approach on my not-so-ferquented weblog, http://codeforfun.wordpress.com. The test data I'm referring to is a bunch of "lorem ipsum dolor..." paragraphs with example help text stuff that shows up whenever I click the J2ME section in the help context. Thanx again for all of your help.
Cliff
Clif,
Could you please send me your .iml/.ipr files.
Thank you
-
Anna Kozlova
JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"
Anna,
I sent the ipr and iml files to your address listed on your forum proile. I'll look to hear from you, Thanx!