Registering multiple DLLs into a single java class using JNA

First of all, some context to fully explain the methods that I have already tried:

I work in a Java windows programming platform that provides access to java custom functions with several other extensions. The source code for this modeling platform has a β€œCVODE” class that provides access to the built-in cvode library to import the functionality of the C ++ CVODE library .

//imports
public class CVODE {

    static {
        Native.register("cvode");
    }
    public static native int ... //methods
}

I created shared libraries from the CVODE library, resulting in 2 files: sundials_cvode.dll and sundials_nvecserial.dll.

Adding the first library to my java path explicitly led to

Unexpected Exception UnsatisfiedLinkError: Unable to load library 'cvode': The specified module could not be found.

. sundials_cvode.dll cvode.dll . , , sundials_cvode.dll:

Unexpected Exception UnsatisfiedLinkError: Error looking up function 'N_VDestroy_Serial': The specified procedure could not be found.

, , . dll , CVODE sundials_cvode.dll sundials_nvecserial.dll.

public class CVODE {

    static {
        Native.register("sundials_cvode");
        Native.register("sundials_nvecserial");
    }
    public static native int ... //methods
}

-

Unexpected Exception UnsatisfiedLinkError: Error looking up function 'N_VNew_Serial': The specified procedure could not be found.

, , dll: enter image description here

, Native.register() . 2- . , , , .

+1
1

, DLL , .. , , dll.

. : fooobar.com/questions/1635788/...

+2

All Articles