• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Knute Snortum
  • Junilu Lacar
  • Devaka Cooray
Saloon Keepers:
  • Ganesh Patekar
  • Tim Moores
  • Carey Brown
  • Stephan van Hulst
  • salvin francis
Bartenders:
  • Ron McLeod
  • Frits Walraven
  • Pete Letkeman

How to run our own jar and jad files using j2me  RSS feed

 
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
 
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.
 
Author and ninkuma
Marshal
Posts: 66827
168
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moved to the J2ME forum.
 
ranger
Sheriff
Posts: 17314
11
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
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!