×

Discussion Board

Results 1 to 6 of 6
  1. #1
    Registered User
    Join Date
    Aug 2003
    Posts
    3

    newbie problem...

    Hi all.
    Trying to run my small app on the nokia 6100 (runs fine in the SUN j2me wireless toolkit 2.0 emulator). When I open the program I get Program error with Info saying: "No such method setLayout.(I)V". Anyone who can give me a clue on this one?


    Thanks for any answer and patience...
    Regards, Svante

  2. #2
    Registered User
    Join Date
    Aug 2003
    Posts
    26
    Are you calling setLayout() anywhere in your code? If so, have you tried commenting it out? What are you using setLayout() to do?

    Finally, which SDK emulator are use using?

  3. #3
    Regular Contributor
    Join Date
    Jun 2003
    Posts
    75
    i think Nokia 6100 support MIDP 1.0 only but not MIDP 2.0, u should use SUN j2me wireless toolkit 1.0.4 for testing

    c this link on "Device Specifications":
    http://www.forum.nokia.com/main/1,6566,015,00.html

  4. #4
    Registered User
    Join Date
    Aug 2003
    Posts
    3
    Hi.
    No, I´m not using/calling setLayout() anywhere in the code. I´m running it from the "KToolbar" and from the "Run MIDP Application"

    I´ll try the 1.0.4 toolkit. Thanks for your replys!

    /svante

  5. #5
    Registered User
    Join Date
    Aug 2003
    Posts
    26
    Hi,

    did you manage to fix the problem? If not, what are your

    #import ???

    commands? If you are importing something that is MIDP 2.0, and trying to run it on your MIDP 1.0 phone, you'll recieve errors (but NOT during compiling, only when you try to run it).

    Cheers,
    Laurence.

  6. #6
    Registered User
    Join Date
    Aug 2003
    Posts
    3

    fix...

    Yeap, that was it. I used midp2.0 stuff (and compiled with midp2.0...). After compiling with 1.0 I recieved compile errors and after fixing those it ran nicely on my phone. As one could expect... But I guess that´s why the "newbie" word exists.


    /svante

Posting Permissions

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