Path for Java to discover native libraries, included via a call to System.loadLibrary(
Questions tagged [java.library.path]
113 questions
7
votes
2 answers
how to use jni in spark?
I want to use jni to call my c++ lib in spark. When i sbt run my program, it shows that java.lang.UnsatisfiedLinkError: no hq_Image_Process in java.library.path , so obviously the program can not find my hq_Image_Process.so .
In hadoop, -files can…

Hellen
- 3,472
- 5
- 18
- 25
7
votes
1 answer
Maven plugin java.library.path
The maven-surefire-plugin supports using the java.library.path property by means of the configuration option.
I need to pass the java.library.path property to sql-maven-plugin (which doesn't have an configuration option) in order…

adrianboimvaser
- 2,651
- 1
- 22
- 30
6
votes
2 answers
JNotify on Mac OS X?
I want to try JNotify, the plugin library for watching file system changes, but cannot figure out how to configure it. The web page for JNotify says that "java.library.path should point to the location of the native libraries that comes with jnotify…

Anders
- 12,556
- 24
- 104
- 151
6
votes
0 answers
sbt test - NoClassDefFoundError
I have a scala app that I build with sbt.
It pulls in a native library.
The native library is loaded via...
System.setProperty("java.library.path", "libs")
System.loadLibrary("native-library")
The app runs absolutely fine on both Ubuntu 14 and…

fatlog
- 1,182
- 2
- 14
- 28
6
votes
1 answer
OpenCV library loaded in hadoop but not working
I am trying to use OpenCV with Hadoop. Below is my code. I am just testing if OpenCV libraries works fine with Hadoop, i.e when I am running OpenCV code in function
public int run(String[] args) of Hadoop.
I searched on the internet, and found some…

Gurinderbeer Singh
- 382
- 2
- 15
6
votes
3 answers
Load Native Library from Class path
I have a project setup that follows the Standard Directory Layout (not using Maven though):
src/main
| java
| resources
| library.dll
Native DLLs are located in the resources folder and sources in the java folder. The…

mschrimpf
- 539
- 2
- 8
- 19
6
votes
2 answers
How can I set the java.library.path used by eclipse from a POM?
I'm using maven to define my projects. One of my dependencies requires a native DLL at runtime, and consequently it's needed in tests and for debugging. The native DLL is available at a known location. I want a solution that I can check in once and…

bacar
- 9,761
- 11
- 55
- 75
5
votes
4 answers
Alternatives to setting java.library.path?
I have a Java program making some JNI calls to a native library ("mylib.so"). Whenever I want to run this program, from the command line, I must set java.library.path to the location of my library as such:
java -Djava.library.path=/var/natives/…

Petey B
- 11,439
- 25
- 81
- 101
4
votes
0 answers
Automatically move libraryDependencies (natives) to Java's Library Path or set Library Path to the location of the dependencies
I'm here to ask for help to automate a process I saw no other solution than doing it manually.
In one of my projects, I have the following dependencies:
libraryDependencies ++= Seq(
"org.lwjgl" % "lwjgl" % "3.0.0a",
"org.lwjgl" %…
user4063815
4
votes
6 answers
Exception in thread "main" java.lang.UnsatisfiedLinkError: no opencv_java249 in java.library.path
I'm currently trying to set up OpenCV on my 32-bit laptop, but I keep getting an error message which is confusing me:
Exception in thread "main" java.lang.UnsatisfiedLinkError: no opencv_java249 in java.library.path
at…

Zetland
- 569
- 2
- 11
- 25
3
votes
0 answers
no mssql-jdbc_auth-8.4.1.x64 in java.library.path
Something is different when I got this error, this instance is running on a tomcat container "tomcat:jdk8-adoptopenjdk-hotspot", I followed multiple ways to copy mssql-jdbc_auth-8.4.1.x64.dll to local java.library.path which is below, but still I'm…

mouel17
- 31
- 2
3
votes
0 answers
Exception in thread "main" java.lang.UnsatisfiedLinkError: no IBScanUltimate in java.library.path
Exception in thread "main" java.lang.UnsatisfiedLinkError: no IBScanUltimate in java.library.path
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.loadLibrary0(Unknown Source)
at…

J. Doe
- 31
- 1
3
votes
1 answer
Where and when is the instance of PathClassLoader created in android source code?
When I was studying android source code, I noticed that the general class loader in app is an instance of PathClassLoader, and there is two constructors in this class. One is like:
public PathClassLoader(String dexPath, ClassLoader parent) {
…

BryanSharp
- 31
- 5
3
votes
1 answer
Running Executable Jar throws no opencv_java310 in java.library.path error but runs fine in IDE
I have made JavaFX Project with using Opencv 3.1 Java library in it.
The thing is that my project runs completely perfect from the IDE but when I try to run the .jar file from the dist folder it throws the unsatisfied link error.
I searched about…

Vishal Nair
- 2,141
- 3
- 26
- 39
3
votes
0 answers
SequenceFile doesn't work with GzipCodec without native-hadoop code OSX
On Mac OS X, when I use compression codec is hadoop I get following error:
java.lang.IllegalArgumentException: SequenceFile doesn't work with GzipCodec without native-hadoop code!
at…

dmreshet
- 1,496
- 3
- 18
- 28