Get user.dir as a symlink not resolved

Wang Weijun weijun.wang at oracle.com
Tue Jun 21 08:50:52 UTC 2016


I'm on a Mac inside /tmp, which is a symlink to /private/tmp.

System.getProperty("user.dir") shows me "/private/tmp". Is there a way to get "/tmp" which is exactly what `pwd` return? I only like "/private/tmp" if I called "cd /private/tmp".

Thanks
Max



More information about the core-libs-dev mailing list