How to implement the DllInscE32.dll of the syntax in the correct Java

0

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;
      }  
}
    
asked by anonymous 17.01.2018 / 17:57

1 answer

0

With the help of the Fabricio user I was able to solve it. I changed the JDK on netbeans from x64 to x32 to use the DLL.

    
18.01.2018 / 14:07