From your description, to change "user.dir" to "application.home" should be correct. The "application.home" is the folder where the executable is. The dll file should be in the same folder as the executable.
So, please pay attention to whether the 32/64bits matches the dll. The executable can only load the corresponding 32/64 bits of dll.
From your description, to change "user.dir" to "application.home" should be correct. The "application.home" is the folder where the executable is. The dll file should be in the same folder as the executable.
So, please pay attention to whether the 32/64bits matches the dll. The executable can only load the corresponding 32/64 bits of dll.