How do you do this, or is it even possible?
I suppose you could play with getCanonicalWhatever and the original way, but it's messy and I don't like it. Please indicate the final reason if you propose it.
See the article How to work with file system links / symbolic links in Java
In short, wait for Java 7 or make a small JNI method