Where should I put my JNI based dlls?
-
If I'm creating my package using the Gradle distribution plug-in?
-
@sockpuppet7 said in Where should I put my JNI based dlls?:
If I'm creating my package using the Gradle distribution plug-in?
Are you trying to rival the worst StackOverflow questions of all time?
Context, please. Are you loading the DLLs with System.load or System.loadLibrary? Do you want them inside the JAR or outside?
-
This post is deleted!
-
@heterodox I have some libraries that I build with cmake for multiple platforms, and some java libraries and applications that use it and are built with gradle. I want to use dependency management with that stuff. So far I didn't find a way that feels right.
-
@sockpuppet7 Okay. ... that doesn't really tell me a lot.
All I can tell you is make sure the DLLs are on java.library.path (you'll probably need to set it since it sounds like your DLLs won't be in PATH).
-
This thread's title is just begging for an impolite answer.
-
@Zecc said in Where should I put my JNI based dlls?:
This thread's title is just begging for an impolite answer.
Well, using JNI means you're using java, which the native devs won't like you for. But it also means you're doing platform-specific stuff, which java devs won't like you for. So hiding it away in darkness seems advisable.
-
The real answer is: wherever you can find them.
But the God answer is: wherever you can convince the world to look for them...