Home > Back-end > A project to import the DLL file
A project to import the DLL file
Time:09-27
Suddenly found a problem, a 64 - bit system can run a 32-bit program, but why the DLL must correspond to each other? Is the cause of the Jvm or the cause of the Windows?
CodePudding user response:
Java through JNI calls a DLL is the requirement for the JVM and DLL digit compatible Not compatible with the following situation: 1, if is a 32-bit system, then certainly install a 64 - bit JVM, can't call 64 DLLS, 2, if it is a 64 - bit systems, a 64 - bit JVM, 32-bit DLL, which is not compatible 3, if it is a 64 - bit system, a 32-bit JVM, a 64 - bit DLL, this I remember if the DLL is compatible with 32 bit patterns generated, or seems to be compatible