I am trying to use your sample in eclipse without success.
I get this error:
Exception in thread “main” java.lang.UnsatisfiedLinkError: Unable to load library ‘D:\workspace\Licensing\lexactivator\win32-x86\LexActivator.dll’: Native library (win32-x86/D:\workspace\Licensing\lexactivator\win32-x86\LexActivator.dll) not found in resource path ([file:/D:/workspace/Licensing/bin/, file:/D:/R&D/Licensing/LexActivator-Win/API/Java/jna.jar])
If your can help me would be great, or maybe you can provide an eclipse project that I can copy or extend.
The sample project is actually a NetBeans project and works fine. Eclipse seems to look for the file in “D:/workspace/Licensing/bin/”, did you try putting the dll in that location.
Which OS are you using, maybe you are missing the VS2010 runtime which is needed in case your OS is Vista or XP. Also ensure arch of JVM and lexactivator.dll is same.