如何导入FromString for joda-time? [英] How to import FromString for joda-time?

查看:215
本文介绍了如何导入FromString for joda-time?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试使用joda-time库来轻松地测量我的程序的执行时间(而不是为用户进行分析)。

I try to use joda-time library for easier measuring the execution time of my program (not for profiling, just for the user).

但是当我编译我的项目我收到关于缺少依赖关系的错误 - FromString类缺少。我试图明确导入它,但是当打字Intellisense(IntelliJ)甚至没有检测到它,另一方面,只有一个jar从joda-time网站下载。

But when I compile my project I get error about missing dependency -- the "FromString" class is missing. I tried to explicitly import it, but while typing intellisense (IntelliJ) does not even detect it, on the other hand there is only one jar for download from joda-time site.

如何解决这种依赖关系?

我知道JT的包装器,但现在我想使用它直接

推荐答案

如果问题出在 FromString 那么缺少的依赖关系就是 Joda Convert 。添加相关的jar。

If the problem is with FromString, then the missing dependency is Joda Convert. Add the relevant jars.

这篇关于如何导入FromString for joda-time?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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