如何导入FromString for joda-time? [英] How to import 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屋!