乔达时间在Eclipse:的NoClassDefFoundError [英] Joda Time in Eclipse: NoClassDefFoundError

查看:265
本文介绍了乔达时间在Eclipse:的NoClassDefFoundError的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用乔达时间图书馆为我的Andr​​oid应用程序拥有ISO 8601格式的日期。我跟着本指南将其加载到我项目,我已经导入我使用的类。月食似乎认识到一切就好了,因为它自动完成了我的进口。但是,当我运行,似乎无法找到的东西。我看到的第一个消息是这样的:

I'm trying to use the Joda Time library for my Android app to have ISO 8601 formatted dates. I followed this guide to load it into my project and I've imported the classes I'm using. Eclipse seems to recognize everything just fine as it auto-completed my imports. But when I run, it seems unable to find something. The first message I see is this:

06-06 13:53:38.831: W/dalvikvm(4172): VFY: unable to find class referenced in signature (Lorg/joda/time/DateTime;)

其次是一些更VFY消息,则这样的:

followed by some more VFY messages, then this:

06-06 13:53:38.911: E/dalvikvm(4172): Could not find class 'org.joda.time.DateTime', referenced from method ...

,然后这样的:

06-06 13:53:40.661: I/dalvikvm(4172): java.lang.NoClassDefFoundError: org.joda.time.DateTime

和虚拟机中止

时,我跟着设立乔达时间失去了一些东西的引导?任何想法我能做得到这个库的工作?谢谢你。

Is the guide that I followed for setting up Joda Time missing something? Any ideas what I could do to get this library working? Thank you.

推荐答案

请确保您在您的项目目录中创建一个目录库,并在那里添加罐子。

Make sure that you create a libs dir in your project directory and add the jar in there.

然后将jar文件添加为正常(在项目属性)

Then add the jar file as normal (in project properties)

这篇关于乔达时间在Eclipse:的NoClassDefFoundError的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆