Loading a dll in Java For Windows XP

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前端其它相关文章!

赞(0) 打赏
未经允许不得转载:web前端首页 » JavaScript 答疑

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

前端开发相关广告投放 更专业 更精准