(Please note redirection to JNA users' list)
On Jun 27, 2008, at 1:19 PM, Lustig, Ryan wrote:
Hi,
I downloaded your latest build (June 23, 2008) of JNA and it works
great in Windows. However, when I try to import other packages,
such as com.sun.jna.linux-amd64, I receive an error. That is, the
java compiler does not like the package name due to the dash (“-“)
in linux-amd64.
The platform-specific directories which contain the native libraries
are not packages, just directories in the zip file.
Am I not supposed to import these packages and, in turn, use
something else instead, or does this work differently than I think?
My impression is that if I want to use JNA on another system, the
interface, Kernel32, needs to extend something else rather than
StdCallLibrary (which comes from the win32 package). Is this right
or do you have documentation I can look at?
The main page at http://jna.dev.java.net has a cross-platform C
library example. Kernel32 (obviously to some) is specific to Windows
and has no direct equivalent on other systems.
StdCallLibrary is peculiar to windows; com.sun.jna.Library should be
used on all other platforms.