2013-02-22 51 views
0

我的MIDlet並DB Java的頁面不顯示任何錯誤,但是,當運行模擬器IT負載,突然有下列錯誤......如何解決J2ME java.lang.NoClassDefFoundError:com/sun/lwuit/layouts/Layout的錯誤?

請幫我解決

Running with storage root C:\Users\Acer\j2mewtk\2.5.2\appdb\MediaControlSkin 
Running with locale: English_United States.1252 
Running in the identified_third_party security domain 
java.lang.NoClassDefFoundError: com/sun/lwuit/layouts/Layout 
    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(+80) 
Execution completed. 
3409264 bytecodes executed 
25 thread switches 
1683 classes in the system (including system classes) 
17718 dynamic objects allocated (532816 bytes) 
3 garbage collections (458688 bytes collected) 
+0

你是否能夠在你的jar中包含LWUIT類? – 2013-02-22 10:46:21

回答

0


添加LWUIT.jar文件在您的構建路徑中。
添加乾淨和構建後,然後測試您的應用程序