I have a Java Application which is distributed to a few users. The application connets to a SQLServer Database using windows authentification. From several SO-Posts (SO6938717, SO17277001) I learned that it is common practice to set a path to the needed library in the VM arguments.
java -Djava.library.path=/path/to/my/dll -jar /my/classpath/goes/here MainClass
My Application runs on 32- and 64bit environments, but for every environment there is a specific library with the same name: sqljdbc_auth.dll.
I can set two paths as VM arguments: java -Djava.library.path=/auth/x86;/auth/x64 -jar /my/classpath/goes/here MainClass
But this doesn't work. How can I ensure, that windows authentification works in 32- and 64bit environments?