I have a 32 bit .dll (sqljdbc_auth.dll) and develope on a 32 bit jdk. My System is 64 Bit. It works all the time, but now i create a runnable jar file, this file can be execute. But when i started it over a Batch File (-jar %~dp0\ScheduledPerformanceanalyse.jar) it dosent work. Warning: Faild to load the sqljdbc_auth.dll: Cant load aIA 32-bit .dll on AMD 64bit platform. By changing the dll to a 64 bit version it works fine, but only by the batch, by my Web-Applikation it doesen't. My Question: How can I fix the problem without changing my jdk to a 64 bit Version?
EDIT: I found the solution, the problem was the jre 64 bit. On the working system were both jre's installed. The batch-File used the JRE 64 not the 32 bit...