如何导入 org.apache.commons.net.ftp.FTPClient
在 Eclipse 中,以下导入...
import org.apache.commons.net.ftp.FTPClient;
...产生以下错误消息...
The import org.apache cannot be resolved
我不知道如何导入,也不知道在哪里下载导入(如果需要)。我可能需要一组逐点击的 Eclipse 说明来解决此问题。
In Eclipse, the following import...
import org.apache.commons.net.ftp.FTPClient;
...produces the following error message...
The import org.apache cannot be resolved
I do not know how to import, nor where to download the import (if necessary). I might need a click-by-click set of Eclipse directions to resolve this.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
步骤:-
下载此commons-net.jar 文件
解压 zip 文件
复制 Jar 文件
将文件放入项目的 lib 文件夹中。
右键单击项目
在列表左侧,单击“Java Build Path”
单击Libraries选项卡,然后单击“Add Jar”
浏览 Commons-net.jar 文件并单击“插入”
Steps:-
Download this commons-net.jar file
Extract the zip file
Copy the Jar file
Place the file in lib folder of your project.
Right click on the project
On left side of list, click on "Java Build Path"
Click on Libraries tab and Click on "Add Jar"
Browse the Commons-net.jar file and click on insert
这是Commons Net 的官方 Apache 下载站点。
选择并提取适当的版本后,在 Eclipse 项目中设置依赖项:
该依赖项不一定是您的项目的本地依赖项,但也可以是。
如果您想要一个项目相关的库,请将 jar 放入适当的项目相关位置。对于项目库,在“Libraries”选项卡中选择“Add Jars”;对于外部库,选择“添加外部 Jars”。
Here's the official Apache download site for Commons Net.
Once you've picked and extracted the appropriate version, set a dependency in your Eclipse project:
The dependency does not need to be local to your project, but may be.
If you'd like a project-relative library, drop the jar into an appropriate project-relative location. For project libraries, choose "Add Jars" in the "Libraries" tab; for external libraries, choose "Add External Jars".
如果您在 Maven 项目中工作,则需要添加
commons-net
作为依赖项If you're working in a Maven project, you will need to add
commons-net
as a dependency