title: Error while copying files from source to destination java
body: <pre><code>//original file
  Path original = Paths.get("C:\\Users\\Laksahan\Desktop\\bg.jpg"); 
  File f = new File("C:\\Users\\Laksahan\\Desktop\\bg.jpg");
  
  // new file
  Path destination = Paths.get("C:\\Program Files\\Tour v0.1\\image\\"+f.getName()); 
  try {
     Files.copy(original, destination, LinkOption.NOFOLLOW_LINKS);
  } catch (IOException x) {
     x.printStackTrace();
  }
  </code></pre>
  
  <p>i tried above method to copy files, it wont work and it prints this error</p>
  
  <pre><code>java.nio.file.NoSuchFileException: C:\Users\Laksahan\Desktop\bg.jpg -&gt; C:\Program Files\Tour v0.1\image\bg.jpg
  </code></pre>
  
  <p>please help</p>