Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Symbolic links on NTFS disk in Linux

913191Jan 25 2012 — edited Jan 31 2012
Hello,

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
This post has been answered by handat on Jan 31 2012
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 28 2012
Added on Jan 25 2012
9 comments
1,396 views