Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

copy file between 2 different machine  RSS feed

 
joseph prabhu
Ranch Hand
Posts: 162
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i write a core java program which copy a files from one machine (where program run) to another machine which is connected ;

my code is



it gives illegal argument exception in the line when i create a object for File Class
can any one help me.
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can't construct a File object from an HTTP URL. A file points to an object on a file system; if it's on a remote machine you need to map the drive first, so that it can be accessed as a shared directory.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!