We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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);
The text was updated successfully, but these errors were encountered:
I don't get it - Why would this functionality go into the library, when the library search path is a standard part of the runtime environment?
Sorry, something went wrong.
No branches or pull requests
Why not support search for different locations by platform? Just like JNA.
Now I implement similar functionality with the following code:
But use JNA:
The text was updated successfully, but these errors were encountered: