• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

simple implementation of downloading a file gives exception ?

 
naved momin
Ranch Hand
Posts: 692
Eclipse IDE Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
naved momin
Ranch Hand
Posts: 692
Eclipse IDE Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 20669
65
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic