JNA Error With Turboactivate

Hey there,

I am having an issue with TurboActivate on an embedded debian system running an application with java (8_65). I keep on receiving a unsatisfiedlinkerror as soon as TurboActivate calls upon the JNA library,

I have traced the error and found that it occurs in the following block of code. I have made all sorts of changes on the os from toggling permissions to changing the run directory of the application. Nothing on that end seems to fix the issue at hand. I have also pasted the stack trace below the block of code showing what I am seeing when the application terminates.

Any help with this would be greatly appreciated as I have spent all day researching this error to no avail.

Thanks!

public static void SetPDetsLocation() throws TurboActivateException { int ret = 1;

try { String location;

if (TurboActivateFolder != null) { location = TurboActivateFolder + "TurboActivate.dat"; } else { /* Note: the following 2 lines will try to retrieve the compiled jar location. This may not work for certain types of apps (e.g. J2EE web apps). You can change the location string to load the path from a configuration file or some other place.

See "GetLibraryLocation()" also. */ File jarFile = new File(TurboActivate.class.getProtectionDomain().getCodeSource().getLocation().toURI().getPath()); location = (jarFile.isFile() ? jarFile.getParent() : jarFile.toString()) + File.separator + "TurboActivate" + File.separator + "TurboActivate.dat"; }

if (Platform.isWindows()) ret = TurboActivateNative.INSTANCE.PDetsFromPath(new WString(location)); else ret = TurboActivateNative.INSTANCE.PDetsFromPath(location); } catch (Exception ex) { throw new TurboActivateException(ex.getMessage()); }

if (ret != 0) throw new TurboActivateException("Failed to set the TurboActivate.dat location."); }

Exception in thread "main" java.lang.UnsatisfiedLinkError: /tmp/jna/jna6214131077907921829.tmp: /tmp/jna/jna6214131077907921829.tmp: cannot open shared object file: No such file or directory at java.lang.ClassLoader$NativeLibrary.load(Native Method) at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1938) at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1821) at java.lang.Runtime.load0(Runtime.java:809) at java.lang.System.load(System.java:1086) at com.sun.jna.Native.loadNativeLibraryFromJar(Native.java:771) at com.sun.jna.Native.loadNativeLibrary(Native.java:697) at com.sun.jna.Native.<clinit>(Native.java:127) at turboactivate.TurboActivateNative.<clinit>(TurboActivate.java:1082) at turboactivate.TurboActivate.SetPDetsLocation(TurboActivate.java:934) at turboactivate.TurboActivate$SetPDetsLocation$0.call(Unknown Source) at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:45) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:112) at eiss.client.LicenseChecker.isLicensed(LicenseChecker.groovy:49) at eiss.client.LicenseChecker$isLicensed$0.call(Unknown Source) at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:45) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:112) at eiss.client.EISSClient.start(EISSClient.groovy:190) at eiss.client.EISSClient$start$2.call(Unknown Source) at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:45) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:112) at eissbox.StdClient.main(StdClient.groovy:70)

You might want to try to use the latest version of JNA first: https://github.com/java-native-access/jna