Symbolic links on NTFS disk in Linux
913191Jan 25 2012 — edited Jan 31 2012Hello,
i have an application which creates a symbolic links. For this i am using the java.nio.file.Files.createSymbolicLink method. The links are created on the NTFS partition and i'm testing it under windows and linux.
When the application creates the link under windows OS, then everything is okay. I can use the link from windows and from the Linux OS (guess ntfs-3g module supports the ntfs symbolic links).
But when i create the link under linux (but still on the same NTFS drive), then the 'standard linux' symbolic link is created. As a result i can use it only under linux, for windows this is just an ordinary file.
So my question is, is there some OS independent way how to handle the symbolic links? I tried to load the WindowsFileSystem, but this class is contained only in my windows jdk libraries. So does this really depends on the OS, not on the filesystem itself?
Thanks for any help,
Matej