Please look at this code snippet:
Path path = Paths.get("followLink.lnk");
System.out.println("path:" + path.toRealPath());
System.out.println("path:" + path.toRealPath(LinkOption.NOFOLLOW_LINKS));
file with name followLink.lnk was created using following windows action:
mouse right click on file -> create shortcut
last two rows output are same and this information about shortcut. Is there way in nio2 obtain information about of source are pointed of shortcut ?