5 messages in net.java.dev.jna.usersRe: [jna-users] Release works, Debug ...
FromSent OnAttachments
Michael WhiteOct 5, 2008 12:27 am 
Timothy WallOct 5, 2008 6:17 am 
LYou...@gkservices.comOct 6, 2008 8:26 am 
Timothy WallOct 6, 2008 8:36 am 
Michael WhiteOct 9, 2008 12:36 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: [jna-users] Release works, Debug gives UnsatisfiedLinkError for library nameActions...
From:Timothy Wall (twal@dev.java.net)
Date:Oct 6, 2008 8:36:33 am
List:net.java.dev.jna.users

On Oct 6, 2008, at 11:27 AM, LYou@gkservices.com wrote:

Quick question. I'm on amd 64 bit box doing windows. I imagine that 32 bit DLLs work fine when loaded from a process thats 32 emu or whatever, but when I try to load the DLL from java I get an error "cannot load ISA-32 into AMD-64" or something to that effect.

So my question is, Is this because java is running as a 64 bit process? Then, would I want to run it as a 32 bit process? Or would I want to recompile the DLL to 64 amd? If I recompile to 64 amd, can I do this with something like mingw? I have not run into this problem before.

IS java running as a 64-bit process? Do "java -version" to find out. If so, it won't load a 32-bit dll and you'll have to either run 32-bit java or compile your DLL as 64 bit.

mingw-64 is probably not a challenge you'd want to take at this point. MS does provide a no-purchase-cost cross-compiler to 64-bit.

Levi Yourchuck Senior Programmer Analyst G&K Services Phone: 952 912 5828 www.gkservices.com Enhancing Image & Safety Through Innovation