Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to run our own jar and jad files using j2me

 
mic ram
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am new to J2me
I have written an J2me application using CLDC1.1
and MIDP 2.0 it works well on emulator but
when i tried to run it on device(Nokia 3100 which uses CLDC1.0 and MIDP 1.0)
it displays an error "Invalid File"

Then i tried a sample example using CLDC1.0 and MIDP1.0
i encounterd same problem

can any body suggest me what the problem is?
answer my question as soon as possible
 
Chetan Parekh
Ranch Hand
Posts: 3640
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to JavaRanch!

When you install J2ME Wireless Toolkit, it comes with the simulator "KToolbar", use it to run your application.

It has some sample applicaitons aslo to learn from it.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65335
97
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moved to the J2ME forum.
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well you definitely can't run it on the Nokia 3100 because ti doesn't have the newer APIs that is in MIDP 2.0 and CLDC 1.1

Even if you change your jad file to say it is MIDP 1.0 and CLDC 1.0, your code that is compiled is still 2.0 and 1.1 and has classes and code that only is in 2.0 and 1.1, so the device will know it and always give you that error.

Either rewrite you app to only use 1.0 and recompile with 1.0 or get a newer device that supports 2.0 and 1.1. Good Luck

Mark
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic