×

Discussion Board

Results 1 to 12 of 12
  1. #1
    Registered User
    Join Date
    Feb 2011
    Posts
    64

    Uncaught exception java/lang/NoClassDefFoundError: HelloMidlet: com/sun/lwuit/events/

    Hi all,'

    I am try to use lwuit in my application ,and am using IDE is eclipse .i did one sample applicarion when i run the application i got the "Application error",(i.e) No class def found error java/lang/noclassdefFounerror com/sun/lwuit/events/Actionlistionr..Am already post regarding this ,and also i got reply but till am not solved my problem..So anyone help me please ..And am add lwuit.jar in build path..


    Thanks,
    murugan.

  2. #2
    Nokia Developer Champion
    Join Date
    Feb 2009
    Location
    Noida, India
    Posts
    3,085

    Re: Uncaught exception java/lang/NoClassDefFoundError: HelloMidlet: com/sun/lwuit/eve

    Add the LWUIT jar in dependent library list in eclispe.
    thanks,
    ~Amitabh
    (Champion of the Month -Aug'13)
    Follow me on my blog for Innovative Mobile Apps

  3. #3
    Registered User
    Join Date
    Feb 2011
    Posts
    64

    Re: Uncaught exception java/lang/NoClassDefFoundError: HelloMidlet: com/sun/lwuit/eve

    ya am added LWUIT.jar in eclipse library only ..Then also am facing the problem" Application error" Uncaught exception java/lang/NoClassDefFoundError: com/sun/lwuit/layouts/Layout. Please help me on this Am struggling many days ...


    thanks,
    murugan.

  4. #4
    Regular Contributor
    Join Date
    Aug 2010
    Location
    Chennai, India.
    Posts
    176

    Re: Uncaught exception java/lang/NoClassDefFoundError: HelloMidlet: com/sun/lwuit/eve

    Quote Originally Posted by murugacse4 View Post
    am facing the problem" Application error" Uncaught exception java/lang/NoClassDefFoundError: com/sun/lwuit/layouts/Layout.
    In Eclipse, You have to download "Mobile tools for java" instead of "EclipseME". Its named as to create project as "Java ME" not "j2me". and follow the instruction of adding lwuit.jar file.

    and another option is Download Eclipse Pulsar for Mobile Development. It provides you easy installation of third party GUI.

  5. #5
    Super Contributor
    Join Date
    May 2008
    Location
    Helsinki, Finland
    Posts
    1,100

    Re: Uncaught exception java/lang/NoClassDefFoundError: HelloMidlet: com/sun/lwuit/eve

    Just adding the direct link: http://www.eclipse.org/downloads/pac...ers/galileosr1

    br Marko
    [FONT="Comic Sans MS"][COLOR="Blue"][/COLOR][I]Marko Lumivuori
    Technical Support
    +358 40 8019330
    [email]marko.lumivuori@nokia.com[/email][/I][/FONT]

  6. #6
    Super Contributor
    Join Date
    Mar 2008
    Location
    The Capital of INDIA
    Posts
    4,328

    Re: Uncaught exception java/lang/NoClassDefFoundError: HelloMidlet: com/sun/lwuit/eve

    Quote Originally Posted by murugacse4 View Post
    ya am added LWUIT.jar in eclipse library only ..Then also am facing the problem" Application error" Uncaught exception java/lang/NoClassDefFoundError: com/sun/lwuit/layouts/Layout. Please help me on this Am struggling many days ...


    thanks,
    murugan.
    When you are opening the project in Eclipse IDE, then are you getting the error about only the Layout or rest of the other classes too. Check the build path of the project and try to configure the same. Cleaning and refreshing the project is also very helpful.
    Thanks with Regards,

    R a j - The K e r n e l


    Join Delhi-NCR Nokia Developer's Community,

  7. #7
    Registered User
    Join Date
    Jul 2012
    Posts
    2

    Re: Uncaught exception java/lang/NoClassDefFoundError: HelloMidlet: com/sun/lwuit/eve

    Hi all,
    This is one of the most frequent error we come across in eclipse.
    1) Pl note ,cleaning the workspace while the nokia/wtk emulator is still running will not work some times, so make sure the device emulators are completely closed while you clean your workspace.
    2) If you are using multiple projects/external jar file libraries, check the order and export in the java build path, this worked for me a couple of times.

  8. #8
    Registered User
    Join Date
    Sep 2012
    Posts
    31

    Re: Uncaught exception java/lang/NoClassDefFoundError: HelloMidlet: com/sun/lwuit/eve

    Quote Originally Posted by murugacse4 View Post
    ya am added LWUIT.jar in eclipse library only ..Then also am facing the problem" Application error" Uncaught exception java/lang/NoClassDefFoundError: com/sun/lwuit/layouts/Layout. Please help me on this Am struggling many days ...


    thanks,
    murugan.
    Right Click the properties of the project -> go the java build path -> go to the Order and Export tab - > select the lib added - > checkin the lib
    This solves your problem . Or directly include the lib in your build properties file.
    Regards,
    Venkatesh

  9. #9
    Registered User
    Join Date
    Feb 2013
    Posts
    4

    Re: Uncaught exception java/lang/NoClassDefFoundError: HelloMidlet: com/sun/lwuit/eve

    I downloaded Eclipse pulsar also and tried it. I can run all other projects but when I am trying to run project containing LWUIT then it gives an error. And when I check in LWUIT Library ten also I got an error.

    Thanks,
    Riddhi

  10. #10
    Registered User
    Join Date
    Feb 2013
    Posts
    4

    Unhappy Re: Uncaught exception java/lang/NoClassDefFoundError: HelloMidlet: com/sun/lwuit/eve

    @murugan ( murugacse4).. I have same problem. Do you get any solution for this?? Please Help.

    Thanks,
    Riddhi

  11. #11
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,672

    Re: Uncaught exception java/lang/NoClassDefFoundError: HelloMidlet: com/sun/lwuit/eve

    Do you actually have LWUIT? Example projects using LWUIT do not actually contain it. It is hosted here: http://projects.developer.nokia.com/LWUIT_for_Series_40
    (Nokia SDK 2.0 for Java comes with LWUIT built-in, but you have not mentioned the SDK you are using)

  12. #12
    Registered User
    Join Date
    Feb 2013
    Posts
    4

    Re: Uncaught exception java/lang/NoClassDefFoundError: HelloMidlet: com/sun/lwuit/eve

    Generally for Layouts and colors we use LWUIT. With LWUIT you can create Java applications that have a richer user interface including transitions and animations. I have LWUIT.jar file. I used it in Net Beans and I can run Projects perfectly fine with LWUIT. But In Eclipse I can not use LWUIT . It gives Preverification Error. I used sun java wireless toolkit for devices.

Similar Threads

  1. Replies: 21
    Last Post: 2011-12-20, 06:28
  2. Replies: 3
    Last Post: 2011-03-25, 20:22
  3. Uncaught exception java/lang/NullPointerException.
    By bapithanc in forum General Messaging
    Replies: 5
    Last Post: 2009-06-15, 09:51
  4. Java/lang/NoClassDefFoundError com/sun/midp/main/Configuration
    By sambaraju in forum Mobile Java General
    Replies: 5
    Last Post: 2009-03-19, 12:10
  5. SUDDENLY ... Uncaught exception java/lang/OutOfMemoryError
    By mbenz1 in forum Mobile Java General
    Replies: 1
    Last Post: 2008-03-15, 23:25

Posting Permissions

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