From inside my Java application, I wish to find out if the user-defined dll is 32 or 64 bit before attempting to load it.
I know (programmatically) whether the JVM on which my application is running is 32 or 64 bit. I also know (programmatically) if the host is Windows or Linux.
How can I programmatically determine whether a dll is 32 or 64 bit before calling "System.loadLibrary()" method?