简体   繁体   English

没有找到ElementListener的类定义错误

[英]No Class Def Found error for ElementListener

I am testing an example java application on a Nokia 303 device using Nokia's java SDK/IDE(Eclipse). 我正在使用诺基亚的Java SDK / IDE(Eclipse)在诺基亚303设备上测试示例Java应用程序。 The example makes use of the categorybar and sets an element listener. 该示例利用了categorybar并设置了一个元素侦听器。 When I run the app on the emulator, it works fine. 当我在模拟器上运行该应用程序时,它运行良好。 When I run the app on the device however, I get the error: 但是,当我在设备上运行应用程序时,出现错误:

No Class Def Found Error java/lang/NoClassDefFoundError com/nokia/example/canvas/CanvasExample:com/nokia/mid/ui/ElementListener 找不到类定义错误java / lang / NoClassDefFoundError com / nokia / example / canvas / CanvasExample:com / nokia / mid / ui / ElementListener

What is missing here? 这里缺少什么? The ElementListener should be part of the nokiaui library. ElementListener应该是nokiaui库的一部分。

Thanks. 谢谢。

You did not say which version of the SDK you are using, but according to http://www.developer.nokia.com/Devices/Device_specifications/Asha_303/ Developer Platform for this phone is "Series 40 Developer Platform 1.1". 您没有说明要使用哪个版本的SDK,但根据http://www.developer.nokia.com/Devices/Device_specifications/Asha_303/的说明 ,此手机的开发平台为“ Series 40 Developer Platform 1.1”。

Make sure you are using "Nokia SDK 1.1 for Java — for Series 40 apps" from http://www.developer.nokia.com/Develop/Java/Tools/ 确保您使用的是http://www.developer.nokia.com/Develop/Java/Tools/中的 “ Nokia SDK 1.1 for Java-Series 40应用程序”

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM