-
Notifications
You must be signed in to change notification settings - Fork 159
Open
Description
Why not support search for different locations by platform? Just like JNA.
Now I implement similar functionality with the following code:
Platform nativePlatform = Platform.getNativePlatform();
Platform.OS os = nativePlatform.getOS();
Platform.CPU cpu = nativePlatform.getCPU();
String searchPath = String.format(basePath + "/src/main/resources/%s-%s", os, cpu);
XXX obj = LibraryLoader.create(XXX.class).search(searchPath).load("some_so");
But use JNA:
XXX obj = Native.load("some_so", XXX.class);
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
