Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Most URGENT: Only for Developers

 
Andrio Nickolson
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All!
I have created a midlet that shows a list of countries, on selecting countries i do search the selected country in the database(string array) and stores all the cities in that country in a self-made object and return to midlet, but it gives an "INVALID CONSTANT POOL ENTRY"!
How could i overcome this problem
Thanx in advance!
mfhorizon@hotmail.com
 
Matthew Phillips
Ranch Hand
Posts: 2676
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Mr. Cash,
We don't have many rules at Javaranch, but our display name policy is one of them. Please read this policy and change your display name to comply with it if you wish to continue posting. Thanks.
You can change your display name here.
 
john muchow
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This error has to do with using JDK 1.4.x with MIDP 1.0.
You can either install JDK 1.3.x, or try this command line option when compiling:
"javac -target 1.1 ......"
John
Core J2ME
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!