Java Native Interface 32 bit dll on 64 bit system

前端 未结 6 1660
春和景丽
春和景丽 2020-12-01 10:18
E:\\Code\\Java\\JNITest>java test
Exception in thread \"main\" java.lang.UnsatisfiedLinkError: E:\\Code\\Java\\JNITest\\test.dll: Can\'t load IA 32-bit .dll on a          


        
6条回答
  •  被撕碎了的回忆
    2020-12-01 11:19

    The DLLs are run by the native OS. Java simply delegates the call to DLL which is very closely knit with the OS on which its compiled. In general you cannot do it in straightforwd way and here is way.

    But there are workarounds like WOW64, which makes it possible. Please check out these links(1,2)

提交回复
热议问题