• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Error message

 
jyothi sanka
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
When I am using ChoiceGroup in a midlet I am getting this error message.

error: File G:\jdk1.3\jre\lib\ext\Pack1.jar(Choice.class) does not contain type Choice as expected, but type Pack1.Choice. Please remove the file, or make sure it appears in the correct subdirectory of the class path.
G:\J2MEWTK\apps\FormTest2\src\FormTest2.java:20: Class Choice not found.
mainscreen.append(new ChoiceGroup("Gauge option",Choice.EXCLUSIVE,
^
G:\J2MEWTK\apps\FormTest2\src\FormTest2.java:20: Undefined variable or class name: Choice
mainscreen.append(new ChoiceGroup("Gauge option",Choice.EXCLUSIVE,
Can anybody explain What shall I do for running this midlet?
Thanks
Jyothi
 
manoj bagul
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello ,
Try ChoiceGroup.EXCLUSIVE instead of Choice.EXCLUSIVE
Manoj
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic