'After I use exe4j packaging, user.dir is no longer the original result

After I use exe4j packaging, user.dir is no longer the original result. Please ask how to solve this problem, that is, how to get the path where the current working path. enter image description here



Solution 1:[1]

Om the "Executable info" step of the wizard, deselect the "Change working directory to" check box in order to keep the current directory as the working directory.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Ingo Kegel