我在java ftp代碼中出錯。java ftp代碼中的問題
SimpleFTP無法請求被動模式。 我從網上覆制了這段代碼。但它不工作
sendLine("PASV");
String response = readLine();
System.out.println(response);
System.out.println(response);
if (!response.startsWith("227")) {
throw new IOException("SimpleFTP could not request passive mode: " + response);
}
錯誤是什麼?你沒有提供任何信息? – Prav 2010-07-06 06:02:18
這可能是完整的來源:http://www.silversurferslab.com/blogs/1/java-simple-ftp-client-class-26.html – 2010-07-06 06:06:49
它顯示「SimpleFTP無法請求被動模式」 – 2010-07-06 06:08:13