I have an application that uses a third-party jar (utils.jar) that calls a third-party DLL (utils.dll). The jar file manages calls to the DLL, including the name of the DLL. There is a 32-bit version and a 64-bit version of the DLL.
Currently, the application can only run on 32-bit machines. When I try to run it on a 64-bit machine, it tells me
Can't load IA 32-bit .dll on a AMD 64-bit platform
When I replace a 32-bit DLL with a 64-bit, it works fine. I donβt want to support two separate releases if I can avoid it (one uses a 32-bit library, and the other in a 64-bit library). Is there a way to create an application so that it can determine which version of the library it should use?
Our projects are built using Ant, although I can explore other alternatives if necessary.
source share