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

an erroe message..

 
Steven Hsu
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I execute "preverify" , then a message shows up
it says "Illegal constant pool index".
what does it mean..?
the ".class" file has been created ,so the "javac" is fine..
and where I can find the reference about the error message..?

thanks for your help..
 
Liam Quinn
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Make sure you're not using any float or double constants such as 3.14 as those aren't supported in MIDP 1.0.
If you're compiling with J2SDK 1.4.0 or higher, make sure you specify "-target 1.1" on the javac command line.
 
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!