aspose file tools*
The moose likes Java in General and the fly likes simple implementation of downloading a file gives exception ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "simple implementation of downloading a file gives exception ?" Watch "simple implementation of downloading a file gives exception ?" New topic
Author

simple implementation of downloading a file gives exception ?

naved momin
Ranch Hand

Joined: Jul 03, 2011
Posts: 682

a simple implementation to download a file from a ftp server which is running in a same machine (i have logged in to the server)
ftp server is filezilla up & running perfectly.
i know the exception is self explanatory but i have logged into a server and with ftp client i can access the shared directories but this code throws exception
which i just dont understand why , so i guess people here can help me out ?


exception is


before going for apache commons net library i though why not try this simple implementation to get an idea about downloading a file from ftp server


The Only way to learn is ...........do!
Visit my blog http://inaved-momin.blogspot.com/
naved momin
Ranch Hand

Joined: Jul 03, 2011
Posts: 682

naved momin wrote:a simple implementation to download a file from a ftp server which is running in a same machine (i have logged in to the server)
ftp server is filezilla up & running perfectly.
i know the exception is self explanatory but i have logged into a server and with ftp client i can access the shared directories but this code throws exception
which i just dont understand why , so i guess people here can help me out ?


exception is


before going for apache commons net library i though why not try this simple implementation to get an idea about downloading a file from ftp server

finally i got that both uploading and downloading of the data
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19544
    
  16

naved momin wrote:i know the exception is self explanatory but i have logged into a server and with ftp client i can access the shared directories but this code throws exception
which i just dont understand why , so i guess people here can help me out ?

Your Java code doesn't know that you've logged in with another program. It doesn't even know the other program exists. You will need to login with every single program that you are connecting with.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: simple implementation of downloading a file gives exception ?
 
Similar Threads
sending a file from one server to another
Corrupted Downloaded Files
Move file from Windows to FtpServer(Unix)
Can't download large file from url by tomcat
FTPS / FTP over SSL with Jakarta Commons Net