【发布时间】:2014-12-10 04:29:11
【问题描述】:
当我尝试使用ftpClient.listFiles("folder"); 列出我所在位置的文件时,它会显示
org.eclipse.debug.core.DebugException: com.sun.jdi.ClassNotLoadedException: Type has not been loaded occurred while retrieving component type of array.
谁能指导我做错了什么。
我用apache-commons-net-3.3
我的代码是
FTPClientConfig ftpClientConfig = new FTPClientConfig(FTPClientConfig.SYST_NT);
FTPClient ftpClient = new FTPClient();
ftpClient.configure(ftpClientConfig);
ftpClient.connect(hostName, Integer.valueOf(portNumber));
ftpClient.enterLocalPassiveMode();
ftpClient.login(username, password);
// Error throws here
FTPFile[] files = ftpClient.listFiles("folder");
【问题讨论】: