I have few ‘so’ files that I need to load in maven java project without having to use System.loadLibrary() method.
I have copied the so files in src/main/resources/ folder. Do I have to mention about them in pom.xml ?
How do I do it ?
I’m getting this error now.
Exception in thread “main” java.lang.UnsatisfiedLinkError: tcl.lang.Interp.commandComplete(Ljava/lang/String;)Z
What do you mean by loading? Maven is a build system. It will put the files in
src/main/resources/in your jar. But it does not affect your code at runtime. So it is up to your code to load the libraries at runtime.