Discussion Board

Results 1 to 2 of 2
  1. #1
    Super Contributor
    Join Date
    Mar 2003

    addCommand and setCommandListener

    Hi all,

    I am compiling my first j2me program from jbuilder personal. The program is helloworldmidlet available as a sample. The run command gives errors as "addCommand and setCommandListener methods of javax.microedition.lcdui.Displayable has NO such PUBLIC methods". I know that these are implemented as PUBLIC.
    Please note its just sample program from JBUILDER personal IDE.

    Thanks in advance

    Posted by Naresh Koneru, koneru_naresh@hotmail.com
    on January 15, 2002 at 08:53

  2. #2
    Super Contributor
    Join Date
    Mar 2003

    RE: addCommand and setCommandListener

    Posted by Forum Nokia Developer Support, communicator.developer@nokia.com
    on January 16, 2002 at 10:15


    Are you using JBuilder MobileSet, Nokia Edition? If not then the problem could be that you haven't set CLDC and MIDP API clasess in the project's class path.

    This can be done by setting the neccessary CLDC and MIDP classess in the project's required libraries(Project|Project Properties...). For example, if you are using Sun's J2ME Wireles Toolkit, then you have to set midpapi.zip package in the project's required libraries. This package is provided in the Sun's J2ME Wireless Toolkit.

    Also check that you are using JRE 1.3.

    Please let me know if this solves the problem


    Developer Support
    Forum Nokia

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts