Skip to content

Auto map Library Name for different platform #18

@liux-pro

Description

@liux-pro

hi
What a good library the NativeUtils is!
NativeUtils works pretty nice.

By using code below,I can load different native library on different platform.
is that necessary to encapsulate System.mapLibraryName() into NativeUtils?

// mapLibraryName() return a platform-dependent native library name
// we get "libHelloJNI.dll" on windows
// we get "libHelloJNI.so" on linux
String libraryName = System.mapLibraryName("libHelloJNI");
NativeUtils.loadLibraryFromJar("/"+libraryName);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions