I see the question "what user.dir means?", how is it identified, why it does not work properly, how to change it. But I do not see the basic question: why do we need "user.dir" in the first place, after all operating systems support "." for current directory?
I see that user.dir
= absolute path to the current directory whareas .
is relative. Is it just a shorthand for File(".").getAbsoluteFile().getParentFile().getName()
?