简体   繁体   English

导入org.apache.commons.lang3无法解析

[英]The import org.apache.commons.lang3 cannot be resolved

I'm trying to import this library in order to use the RandomStringUtils class, but always I'm getting the error in the title of the question. 我正在尝试导入该库以使用RandomStringUtils类,但始终会在问题标题中出现错误。

This is an ANT project, so I downloaded the library from Apache ( http://commons.apache.org/proper/commons-lang/download_lang.cgi ) and put it in the lib folder of the project. 这是一个ANT项目,因此我从Apache( http://commons.apache.org/proper/commons-lang/download_lang.cgi )下载了该库,并将其放在该项目的lib文件夹中。 However, it's not working. 但是,它不起作用。

I got another library in this folder (org.apache.commons.cli) and it's working fine. 我在此文件夹(org.apache.commons.cli)中获得了另一个库,并且运行正常。

edit : ok, this is solved... It's a bug in Eclipse saying the import cannot be resolved. 编辑 :好的,这已解决...这是Eclipse中的一个错误,表示无法解决导入。

好的,已经解决了...这是Eclipse中的一个错误,表明无法解决导入。

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

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