Questions tagged [java.library.path]

Path for Java to discover native libraries, included via a call to System.loadLibrary(). Tag when exceptions and errors reference this property, or when having trouble setting it properly.

113 questions
1
vote
2 answers

Java programming, opencv unsatisfied link error

OpenCV libraries gives unsatisfied link error in capturing a video stream. Where should be the opencv 3.2.0 libraries? What is the correct path for packages of opencv classes? Code where to generate this error: package opencv; import…
1
vote
0 answers

Why eclipse is not using the right "java.library.path"?

I am working with Ubuntu 16.04 and there I have a project where I need to add the path "usr/local/MATLAB/R2017a/bin/glnxa64" as VM argument or Native Library Location, but I would like to avoid doing it, so I have read that I could do this by adding…
1
vote
1 answer

How to install jinput in eclipse?

The last days I searched how to use Controllers like DS4 in java and it got me to jinput. After downloading the zip file. I added the two JARs to the project and tryed to run a test code, that I found in an installtion guide. The problem is that it…
Timf2000
  • 29
  • 4
1
vote
1 answer

Add folder to Jenkins java.library.path for specific project

I am trying to load a .so file (native library) in my Jenkins build. I believe the native libraries are all read via the java.library.path. Can I add to the path just for a specific Jenkins project?
Tim
  • 41
  • 4
1
vote
4 answers

java.lang.UnsatisfiedLinkError: no frmjapi in java.library.path

I have a project on eclipse that I'm working on and I'm using it on an XP 32-bit machine, I want to move the project to my PC which is Windows 7 64-bit. I can compile my project without errors, but when I run it, I get the error Exception in thread…
hakuna matata
  • 3,243
  • 13
  • 56
  • 93
1
vote
0 answers

How java finds native libraries?

I know that I have to store my libraries into java.library.path folders. I put my dll insite c:\windows\system32 folder (I'm using 32bit jre) and I tried this code: public static void main(String[] args) { …
Tobia
  • 9,165
  • 28
  • 114
  • 219
1
vote
1 answer

Java can't find native libraries when running Clojure JAR

The project I'm working on is a server-side Clojure project with Leiningen as my build tool. The problem occurs when I try to run the JAR I created using Leiningen's uberjar. The JAR is dependent on some native libraries I've placed in:…
Yam Bakshi
  • 147
  • 1
  • 8
1
vote
0 answers

how to add a ".so" library in a Netbins project in ubuntu

I am a beginner in Netbeans JAVA development. I am searching for this solution for a long time and I have found some answers from here and here too but I can't make it work. I have also tried to run this command: java…
Bishwajyoti Roy
  • 1,091
  • 1
  • 14
  • 19
1
vote
1 answer

java Opencv unsatisfiedLinkError, native Library is loaded

I am trying to run some program on opencv, but I am getting this error: Exception in thread "main" java.lang.UnsatisfiedLinkError: org.opencv.objdetect.CascadeClassifier.CascadeClassifier_0(Ljava/lang/String;)J I have already loaded the library,…
1
vote
1 answer

How to get Gradle to generate java.library.path for eclipse

I have a gradle project which is using sqlite4java and I'm working in eclipse. My problem is that when I get gradle to generate the eclipse project files, the project classpath contains sqlite4java's native libraries on the classpath instead of on…
Alex Q
  • 3,080
  • 2
  • 27
  • 29
1
vote
1 answer

Add a lib to java.library.path with Scala and SBT?

I am using the Play Framework and Scala. I need to add a Java library that has some JNI libraries dependencies. On their site they say to put the native libraries in java.library.path. How do I add the native libraries to an SBT project using Scala?
danielz
  • 1,767
  • 14
  • 20
1
vote
3 answers

Eclipse: ABAP communication layer is not configured... no sapjco3 in java.library.path

Situation: After downloading and installing Eclipse Luna. Then Installing SAP Plugins: HANA, ABAP Issue: Error Message pops up when Eclipse starts: ABAP communication layer is not configured properly. This might be caused by missing Microsoft…
Thorsten Niehues
  • 13,712
  • 22
  • 78
  • 113
1
vote
0 answers

Can not find native library java.nativelibJCudaDriver-linux-x86_64.so

I am trying to implement JCUDA code on Hadoop. However while running the application, it gives unsatisfied link error: can not load the native library "JCudaDriver-linux-x86_64" with base name "JCudaDriver"' I have tried added the path to the…
1
vote
2 answers

IntelliJ Linux LWJGL 3 Add natives to

I wanted to try out the new LWJGL 3 which is currently in kind of a "beta"-state. Embarrassingly I can't even get the HelloWorld example (http://www.lwjgl.org/guide) to run. package org.lwjgl.glfw does not exist is all I get. I added the lwjgl.jar…
user4063815
1
vote
1 answer

IBM Clearcase CM API Provider Instantiation throws Exception "Cannot instantiate protocol provider: cqjniproxy (Not found in java.library.path)"

I started coding a test client with CM API recently from my desktop. While trying to retrieve the provider, it throws this exception: Code line: StpProvider provider = (StpProvider) ProviderFactory.createProvider(CcProvider.PROVIDER_CLASS,…