FaqJ2MEMIDP20andPalm

I developed J2ME application in NetBeans. When running it as .prc on my Palm Tungsten C, I get message "Alert does not accept commands - java.lang.IllegalStateException." What is going on?

From MIDP 1.0 javadoc

public void addCommand(Command cmd)
Commands are not allowed on Alerts, so this method will always throw IllegalStateException whenever it is called.


Overrides:
addCommand in class Displayable


Parameters:
cmd - the Command
Throws:
IllegalStateException - always

it seems that the Palm VM supports MIDP 1.0 only. IBM Java VM v 2.2.012 for Palm Tungsten C should be fully MIDP 2.0 compliant.

Not logged in. Log in, Register

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo