×

Discussion Board

Results 1 to 6 of 6

Hybrid View

  1. #1
    Registered User
    Join Date
    Mar 2013
    Posts
    14

    New to Nokia java development, running on emulator throws ClassNotFoundException

    Hello,
    I am new to Nokia development. I have started a new MIDlet project, and added a new class UpdateJourney to a package com.taxeeta. In UpdateJourney I have some code in the constructor and a System.out on startApp. I have not modified the application descriptor in any way, assuming that default parameters would get this to work.

    When I load the I get a ClassNotFoundException on UpdateJourney. What am I missing ?

    Siddharth

  2. #2
    Super Contributor
    Join Date
    Nov 2003
    Location
    Bangalore , India
    Posts
    4,429

    Re: New to Nokia java development, running on emulator throws ClassNotFoundException

    Welcome to Nokia Java World!

    Need few more clues - Which IDE , Emulator are you using ? Is the code written by you or created by the IDE ?

    Regards
    Gopal
    Twitter : @balagopalks
    Linkedin : @balagopalks

  3. #3
    Registered User
    Join Date
    Mar 2013
    Posts
    14

    Re: New to Nokia java development, running on emulator throws ClassNotFoundException

    Using Eclipse and Nokia 2000 Emulator. I have written the code.

    In addition I also checked the Application Descriptor, it had UpdateJourney, instead of com.taxeeta.UpdateJourney. Fixed it.
    I also moved the code from the constructor to the startApp method.

    I closed the emulator and restarted it, just to eliminate any stale jad on the same emulator.

    Yet I get exactly the same exception ClassNotFound.

    Siddharth

  4. #4
    Registered User
    Join Date
    Mar 2013
    Posts
    14

    Re: New to Nokia java development, running on emulator throws ClassNotFoundException

    The build.properties file did not have UpdateJourney enabled. That is just plain stupidity of the development environment.

  5. #5
    Super Contributor
    Join Date
    Jun 2003
    Location
    Cheshire, UK
    Posts
    7,395

    Re: New to Nokia java development, running on emulator throws ClassNotFoundException

    Quote Originally Posted by taxeeta View Post
    That is just plain stupidity of the development environment.
    Yes... that's the eclipse Mobile Tools for Java... not a Nokia thing... and it catches me time and time again!!

  6. #6
    Registered User
    Join Date
    Mar 2013
    Posts
    14

    Re: New to Nokia java development, running on emulator throws ClassNotFoundException

    One more, if you have the wrong MIDlet in the application descriptor, you get a instantiationexception.

Similar Threads

  1. Nokia for Java SDK 2.0 Emulator running very slow
    By thekraken in forum Mobile Java Tools & SDKs
    Replies: 6
    Last Post: 2012-07-15, 02:45
  2. Error: java.lang.classnotfoundexception:midlet (pls help me on this)
    By wintereclipse in forum Mobile Java Tools & SDKs
    Replies: 2
    Last Post: 2010-04-04, 10:58
  3. java.lang.ClassNotFoundException
    By ASararu in forum Mobile Java General
    Replies: 9
    Last Post: 2009-08-26, 09:44
  4. java.lang.ClassNotFoundException
    By roryfynn in forum Mobile Java General
    Replies: 2
    Last Post: 2006-02-03, 13:29

Posting Permissions

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