NoClassDefFoundError: .. /midletui/TestRunner

Help
Jarodtang
2006-09-18
2013-04-17
  • Jarodtang
    Jarodtang
    2006-09-18

    Hi Eso:
           I craft unit test with j2meunit(with EclipseME/WTK2.5 beta), it's ok for running test with textui, but i got the following error feedback , when try to run the test by:

    "
    public class ExplorerViewTestMIDlet extends TestRunner{
        protected void startApp()
        {
            start(new String[] { "TestAll" });
        }
    }
    "
    P.S. i use the jar, downloaded from sf.net,:)

    Thanks in advance.

    Cheers
    Jarod

    --------------------------------------------------
    java.lang.NoClassDefFoundError: ExplorerViewTestMIDlet: j2meunit/midletui/TestRunner
        at com.sun.midp.midlet.MIDletState.createMIDlet(+29)
        at com.sun.midp.midlet.Scheduler.schedule(+52)
        at com.sun.midp.main.Main.runLocalClass(+28)
        at com.sun.midp.main.Main.main(+116)
    Execution completed.
    3435815 bytecodes executed
    37 thread switches
    1620 classes in the system (including system classes)
    17636 dynamic objects allocated (521620 bytes)
    2 garbage collections (454620 bytes collected)

     
    • Obviously the TestRunner class cannot be found in you setup, so you should check your classpath setup.

       
    • Jarodtang
      Jarodtang
      2006-09-18

      i have add the setting as http://www.linuxmine.com/imgfiles/2005.9.9.10.47.42.5.2.jpg, still the problem,:)

       
    • Jarodtang
      Jarodtang
      2006-09-18

      sorry, the setting as the : http://www.linuxmine.com/45907.html