简体   繁体   English

从FTP服务器下载CSV文件

[英]Download csv file from FTP Server

i am using following code to get csv file from ftp server 我正在使用以下代码从ftp服务器获取csv文件

but it is working i am place this in servlet i am getting 但它正在工作,我将其放在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

can any one suggest me 有人可以建议我吗

Add the jsch library on your runtime classpath 在运行时类路径上添加jsch库

Good luck! 祝好运!

Edited: 编辑:

To include a jar to classpath: 要将jar包含到类路径中:

  1. on command line see java docs 在命令行上查看java docs
  2. on Eclipse see this post 在Eclipse上看到这篇文章

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

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