title: Paths.get(args[0]) does not work
body: <p>How can I give a source file in args[0] and a target in args[1]? I created a source.txt and a target.txt in the same package and put "./source.txt" and "./target.txt" as arguments in the run configuration. But it throws the exception that "./source.txt" is not readdable.</p>
  
  <pre><code> Exception in thread "main" java.lang.IllegalArgumnetException: ./source.txt
  </code></pre>
  
  <p>What is worng?</p>
  
  <pre><code>import java.io.IOException;
  import java.nio.file.Files;
  import java.nio.file.Path;
  import java.nio.file.Paths;
  import java.nio.file.StandardCopyOption;
  import de.sb.javase.TypeMetadata;
  
  
  /**
     * Demonstrates copying a file using a single thread.
  */
  public final class FileCopyLinear {
  
  /**
   * Copies a file. The first argument is expected to be a qualified source file name,
   * the second a qualified target file name. 
   * @param args the VM arguments
   * @throws IOException if there's an I/O related problem
   */
  public static void main(final String[] args) throws IOException {
      final Path sourcePath = Paths.get(args[0]);
      if (!Files.isReadable(sourcePath)) throw new IllegalArgumentException(sourcePath.toString());
  
      final Path sinkPath = Paths.get(args[1]);
      if (sinkPath.getParent() != null &amp;&amp; !Files.isDirectory(sinkPath.getParent())) throw new IllegalArgumentException(sinkPath.toString());
  
      Files.copy(sourcePath, sinkPath, StandardCopyOption.REPLACE_EXISTING);
  
      System.out.println("done.");
  }
  }
  </code></pre>