views:

179

answers:

1

Title says it all.

How do you do it, or is it even possible?

I suppose you could fiddle with getCanonicalWhatever and the original path, but that's messy and I don't like it. Please include a definitive reason if you suggest it.

+5  A: 

See the article How to deal with filesystem softlinks/symbolic links in Java

In short, wait until Java 7 or do a little JNI method

Ulf Lindback
Interesting article!
André
Had to do the JNI method myself, around 2001 - been there, done that, have the code around here somewhere...
Ken Gentle