windows - How to create Soft symbolic Link using java.nio.Files -
I am making a symbolic link on Windows using an order like this:
Cmd / c mklink / j "$ {linkNameCanonicalPath}" "$ {targetFolder.canonicalPath}" from Groovy and using Runtime.getRuntime (). Exec () method
This is working fine, but I want to use it in the java.nio.Files.createSymbolicLink () method. But I always get the same error message: java.nio.file.FileSystemException: Customer does not have an essential privilege the current user's For the mklink / j command works and I want to avail the privileges
Windows (W7) Along with, you can add to the list of users who can create a symbolic link (without disabling UAC) using security policies. Es.
- Run
secpol .msc - Visit
Security Settings. Local Policies | User Rights Assignment | Make a symbolic link - Add your username.
- Restart your session.
Comments
Post a Comment