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.
posted 8 years ago
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.