@@ -0,0 +1,572 @@
+package com.dw.ftp;%0A%0Aimport org.apache.ftpserver.FtpServer;%0Aimport org.apache.ftpserver.FtpServerFactory;%0Aimport org.apache.ftpserver.ftplet.FtpException;%0A%0Apublic class FtpEmbedded %7B%0A%0A%09public static void main(String%5B%5D args) %7B%0A%09%09// TODO Auto-generated method stub%0A%09%09FtpServerFactory serverFactory = new FtpServerFactory();%0A%09%09FtpServer server = serverFactory.createServer();%0A%09%09// start the server%0A%09%09try %7B%0A%09%09%09System.out.println(%22ftp server started....%22);%0A%09%09%09server.start();%0A%09%09%7D catch (FtpException e) %7B%0A%09%09%09// TODO Auto-generated catch block%0A%09%09%09e.printStackTrace();%0A%09%09%7D%0A%09%7D%0A%0A%7D%0A

add ftp embedded source code