I need to create a Java function that receives the DllInscE32.dll, made available by Sintegra to verify the consupencia of State Subscriptions. But passing the DLL location appears:
"Exception in thread "main" java.lang.UnsatisfiedLinkError: Unable to load
library 'DllInscE32': Native library (win32-x86-64/DllInscE32.dll) not found
in resource path ..."
The function code:
public class Validar_IE{
protected static final Object ebfCallNativeFunction(String libraryName, String functionName, List argsList, String returnType) throws Exception {
Object[] argValues = new Object[argsList.size()];
for (int i = 0; i < argsList.size(); i++) {
List arg = (List) argsList.get(i);
argValues[i] = (String) arg.get(1);
}
com.sun.jna.Native.setProtected(true);
com.sun.jna.Function func = com.sun.jna.Function.getFunction(libraryName.toString(), functionName.toString());
Object result = func.invoke(Class.forName(returnType), argValues);
return result;
}
}