I'm attempting to load a dll using the `System.loadLibrary("myDllFile")` that I built on a linux machine using Makefile. I get a
>*java.lang.UnsatisfiedLinkError c:\test\myDllFile.dll: can't load this .dll (machine code=0x101) on a IA 32-bit platform*
exception when I run the main java class containing the `loadLibrary` statement. I'm attempting to run the java class on Windows XP. Do I need a separate dll for windows xp (32bit) and windows 7 (64 bit)? Yes, Win32 .dll's are incompatible with Windows/64-bit .dll's. Linux shared libraries similarly have incompatible elf-32 and elf-64 formats. And none of these four, mutually exclusive binary formats are typically used with Java. Unless you're using JNI.
以上就是Loading a dll in Java For Windows XP的详细内容，更多请关注web前端其它相关文章！