繁体   English   中英

从FTP服务器下载CSV文件

[英]Download csv file from FTP Server

我正在使用以下代码从ftp服务器获取csv文件

但它正在工作,我将其放在servlet中

EVERE: Servlet.service() for servlet [com.FTP.Controller.FTPDownload] in context with path [/FTPServer] threw exception [Servlet execution threw an exception] with root cause
java.lang.ClassNotFoundException: com.jcraft.jsch.Session

有人可以建议我吗

在运行时类路径上添加jsch库

祝好运!

编辑:

要将jar包含到类路径中:

  1. 在命令行上查看java docs
  2. 在Eclipse上看到这篇文章

暂无
暂无

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

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