How to list all the files of a directory which is on a remote machine in java?
<p>I have a c code.I need to write a java code which i would then have to convert into a jar file and run from my c code.The purpose of the jar file would be to log into a remote machine and then navigate to a defined path and then list all the files in the specific directory in string format.That is i want to obtain something like 
String FileNames[] = {"File1","File2",...} so that then i can use the system call available for FTP log in and download to download all the files recursively.</p>

<p>So how do i do that.Any idea?</p>
