... current directory defined by a process outside of own code is a not really reliable for always working code. That is not so easy as it looks like because of most Java programmers think
current working directory is identical to
directory containing .class (not compiled) or .jar or .war file (compiled) which can be true, but can be also false as the process starting
java.exe
determines which directory is the current working directory. —
Mofi 25 secs ago