8 messages in net.java.dev.jna.usersRe: [jna-users] UnsatisfiedLinkError ...
FromSent OnAttachments
Joel UckelmanMay 25, 2009 2:55 pm 
Timothy WallMay 25, 2009 5:42 pm 
Joel UckelmanMay 26, 2009 1:53 pm 
Timothy WallMay 26, 2009 1:58 pm 
Joel UckelmanMay 26, 2009 2:08 pm 
Timothy WallMay 26, 2009 3:17 pm 
Joel UckelmanMay 26, 2009 3:24 pm 
Timothy WallMay 27, 2009 11:31 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] UnsatisfiedLinkError due to invalid ELF headerActions...
From:Joel Uckelman (ucke@nomic.net)
Date:May 26, 2009 2:08:28 pm
List:net.java.dev.jna.users

Thus spake Timothy Wall:

On May 26, 2009, at 4:54 PM, Joel Uckelman wrote:

Thus spake Timothy Wall:

This is most likely an architecture mismatch, either 32-bit code trying to load 64-bit code or vice versa.

This could happen if running a 64-bit JVM but only having the 32-bit system libraries in LD_LIBRARY_PATH (or in this case, jna.library.path, which is where JNA will look for the library).

Does this mean that the user has his system misconfigured? Or is there something I need to be setting in order to account for this possibility?

Hard to say without knowing what it is that you're setting. If you're configuring an Arch linux package, it could be your fault. If you're just providing a Java application, then it's more likely the user that needs to configure the system properly. If you're providing a wrapper that sets stuff up for the Java app, then it might be a little of both.

My Java app is using JNA in order to call sysinfo(2) to find out how much RAM is installed in the user's system. Presently, the app is delivered as a tarball, not as an Arch Linux package (I couldn't even say what kind of packages Arch uses, off the top of my head).