title: How to create Soft symbolic Link using java.nio.Files
body: <p>i'm creating symbolic links on Windows using a command like this :</p>
  
  <pre><code>cmd /c mklink /J "${linkName.canonicalPath}" "${targetFolder.canonicalPath}"
  </code></pre>
  
  <p>From Groovy and using Runtime.getRuntime().exec() method</p>
  
  <p>It's working fine but i want do the same using <em>java.nio.Files.createSymbolicLink()</em> method. But I always obtain the same error message: </p>
  
  <pre><code>java.nio.file.FileSystemException: A required privilege is not held by the client.
  </code></pre>
  
  <p>The mklink /J command works for the current user and i want avoid elevate privileges</p>