Path for Java to discover native libraries, included via a call to System.loadLibrary(
Questions tagged [java.library.path]
113 questions
2
votes
0 answers
DYLD_LIBRARY_PATH with current Mac OS X is not working?
my goal is to make the jodbc driver from sybase working with my gradle build. But the System/bin64/sa_config.sh is not working as expected. This script modifies/ appends the DYLD_LIBRARY_PATH (see extraction of script):
# comment the following to…

nauni77
- 127
- 3
- 9
2
votes
0 answers
Get Native Lib from data for Android System App
I want to get the native lib path from data for my app that will be installed in the system, I have tried this code:
String libPath = "/data/data/" + packageName + "/lib/" + libName+".so";
System.load(libPath);
But it gives this…

Redturbo
- 1,563
- 8
- 22
- 34
2
votes
1 answer
How to edit eclipse.ini to prepend existing java.library.path
During the installation of the Subclipse SVN plugin for Eclipse Luna on my Ubuntu 15.04, I ran into problems installing the JavaHL SVN interface. (Failed to load JavaHL library)
According to Subclipse' FAQ about JavaHL troubleshooting for Linux you…

David Charypar
- 61
- 7
2
votes
1 answer
liblpsolve55.so: cannot open shared object file: No such file or directory
Good Morning,
I am working with lpsolve with eclispe and in Java.
I can import correctly the program but when running it I got the exception :
Exception in thread "main" java.lang.UnsatisfiedLinkError: /usr/lib/lp_solve/liblpsolve55j.so:…

benDir
- 51
- 1
- 4
2
votes
0 answers
Maven set java.library.path
I tried the other answers proposed in the other stackoverflow questions, but some of them are either outdated or don't work. I was wondering what is the preferred method to have Maven set java.library.path?

Hank
- 3,367
- 10
- 48
- 86
2
votes
0 answers
Adding a native libary to eclipse project which has further dependencies
My goal is to add a native library to an eclipse project which has further dependencies on DLLs which are usually part of Windows OS or the MS Visual Studio redistributables (e.g., MSVCR110.dll and others...).
Putting my native library foo.dll in a…

mav
- 43
- 3
1
vote
2 answers
Is there a way to include native libraries in a JAR, like in Java Webstart, without using Webstart?
I'm working on a game that uses LWJGL and thus requires native libraries specific to each platform. On this page, the author shows how to use the tag with Java Webstart to include JARs containing the appropriate native libraries. I'm…

Jake
- 600
- 8
- 20
1
vote
1 answer
JDIC Library Path
I have the following line in my java app
webBrowser = new WebBrowser(new URL("http://java.net"));
It is causing the following error
org.jdesktop.jdic.init.JdicInitException: java.lang.UnsatisfiedLinkError: no jdic in java.library.path
at…

DanMatlin
- 1,212
- 7
- 19
- 37
1
vote
0 answers
Exception in thread "main" java.lang.UnsatisfiedLinkError: no dbjdbc17 in java.library.path
I am trying to connect a java program to a database SQL Anywhere 17 using JDBC connection SQL Anywhere 17 installed in Windows machine. I have built a JAR to run the connection. The JAR is working in another Windows machine. I have jconn4.jar and…

Tarun teja
- 59
- 3
- 7
1
vote
2 answers
Adding libraries to java.library.path
I am trying to run a program which is executed by running the following batch file:
@echo off
rem Add extra JVM options here
set OPTS=-Xms64m -Xmx256m
rem Build command line arguments
set CMD_LINE_ARGS=%1
if ""%1""=="""" goto…

alex28
- 552
- 2
- 10
- 19
1
vote
0 answers
Oracle Error - Failed: no ocijdbc19 in java.library.path
I have a PC with many connections, all runs correctly.
I received a new PC Win 10, I work via Cisco Any Connect from home.
I install SQL Developer 20.2 and 19.4 (same version of my old PC), I import my connections (about 15), only 2 connections send…

Fabiano
- 13
- 1
- 4
1
vote
2 answers
Java - java.library.path problem on Linux
I am able to run a java program with some dependencies from cmd line on my mac, but when I try to run it on a linux SUSE 11 box I have it comes back with:
Exception in thread "main" java.lang.UnsatisfiedLinkError: no myNativeLib in…

JohnIdol
- 48,899
- 61
- 158
- 242
1
vote
1 answer
Set java.library.path inside a jar file
I am trying to create an executable jar file for a project which has a java library resource folder as dependency within the project itself. I want to deploy that jar without the need for the user to download that dependency separately. So I added…

GuyTal
- 207
- 5
- 17
1
vote
0 answers
Java can't find native library path
I know this is a quite common question but I think I tried every solution without success.
The error I get:
Native code library failed to load.
java.lang.UnsatisfiedLinkError: no App_JavaAPI in java.library.path
I've appended the path to the…

Akinn
- 1,896
- 4
- 23
- 36
1
vote
1 answer
Why we use java.library.path to set a path which contains java jar files instead of native library?
To my understanding, java.library.path sets the .so or .dll native library for JVM. If we want to tell JVM the our java file jar path, we can use -classpath.
I happened to see an service which uses java.library.path and that path contains many java…

hongchangfirst
- 245
- 3
- 17