Path for Java to discover native libraries, included via a call to System.loadLibrary(
Questions tagged [java.library.path]
113 questions
1
vote
1 answer
Importing libraries from build.xml file in Eclipse
I am developing a java app and I need to use jnativehook library. I have downloaded the .zip from https://code.google.com/p/jnativehook/downloads/list . There is a bin folder,src folder,build.xml,build.num and 3 .txt files when I extracted this…

user3873909
- 191
- 1
- 3
- 15
1
vote
1 answer
Obtain path of jar when running inside a .app on mac os x
I've my javafx jar running inside a .app. Now if I execute
System.getProperty("user.dir")
I get location of user home i.e. /Users/DevAccount/ where DevAccount is system user name instead of location of .app file or .jar file.
How do I find where…

Ruturaj Patil
- 608
- 1
- 10
- 25
1
vote
0 answers
Appcelerator Titanium doesn't start on my Mac
I've tried to run appcelerator Titanium Studio on my Mac but it give me this error (I've deleted and reinstalled the TitaniumStudio.app, java, workpspace directory..)
My OS is Osx Mavericks, jdk-7u45, last version of Titanium studio (3.2.0)
Any…

Andrew_de
- 11
- 2
1
vote
1 answer
java.library.path misplaced at runtime on linux
Setting java.library.path at runtime doesn't do anything:
public class Test{
public static void main(String []args){
System.out.println(System.getProperty("java.library.path"));
}
}
I run Test (having build it previously) like this:
user:~$…

Madalina
- 23
- 5
1
vote
1 answer
Hadoop and JZMQ - no jzmq in java.library.path
I'm trying to get the JZMQ code working on ONE of the nodes on Hadoop Cluster. I have necessary native jmzq library files installed under - /usr/local/lib directory on that node.
Here's the list -
libjzmq.a libjzmq.la libjzmq.so libjzmq.so.0 …

user2508012
- 43
- 1
- 3
- 5
1
vote
1 answer
Jni not working
This is my Java code.
class NativePrompt {
private native String getInput(String prompt); //native method
static //static initializer code
{
System.loadLibrary("NativePrompt");
}
public static void main(String[]…

Smith Dwayne
- 2,675
- 8
- 46
- 75
1
vote
1 answer
How do I modify Eclipse's library.path?
I have rather perhaps general question...
I am using Eclipse as my IDE... When I go to
->HELP ->ABOUT ECLIPSE SDK ->INSTALLATION DETAILS ->CONFIGURATION,
I see the line entries:
-Djava.class.path=C:\Eclipse\etc...
and…

JavaFan
- 1,295
- 3
- 19
- 28
0
votes
1 answer
How to programmatically load librxtxSerial in Java
I started to play with arduino an interfacing it with Java, it was pretty straightforward, but now I would like to programmatically load the librxtxSerial native lib, and I can't figure out.
Since I'm on MacOS 64bit and use Java6 I used the…

xavier.seignard
- 11,254
- 13
- 51
- 75
0
votes
2 answers
Is there a netbeans equivalent to "Native library location" in eclipse for jar files?
In eclipse you can add a native library location for each jar file in your project. I prefer this method to adding a -Djava.library.path to the VM arguments. Is there an equivalent in netbeans or am I stuck with the -D?
This is related to this…

Luke
- 3,742
- 4
- 31
- 50
0
votes
0 answers
Hot to get rid of 'Unable to load native-hadoop library for your platform' with local Spark and Delta Lake
I checked this question and tried every single answer except rebuilding Hadoop (which is failing with endless errors so far). My hope is that the binaries from the official Hadoop distribution will do, but I can't make it work.
Dockerfile:
FROM…

greatvovan
- 2,439
- 23
- 43
0
votes
0 answers
Jboss java.library.path not loading the correct path
Good day,
Since day 1, 2 years ago, the domain.conf in Jboss app is configure with the following value:
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/safenet/protecttoolkit5/ptk/lib/
export LD_LIBRARY_PATH
And then in the /home/admin/.bash_profile, the…

Panadol Chong
- 1,793
- 13
- 54
- 119
0
votes
0 answers
How to add dll to java library path properly
i am using a local .jar file in my eclipse project which loads a .dll itself:
private static void ForceReloadLibraryPath() {
/* */ try {
/* 731 */ Field fieldSysPath = ClassLoader.class.getDeclaredField("sys_paths");
/* 732 */ …

umpapa
- 55
- 1
- 8
0
votes
1 answer
Exception in thread "main" java.lang.UnsatisfiedLinkError: no Terminal in java.library.path
I was trying to run the CHARVA Tutorial thru Eclipse after setting up the JAR,
but I receive
Exception in thread "main" java.lang.UnsatisfiedLinkError: no Terminal in java.library.path
in the console. Any clue on how to fix this up?

Bob
- 27
- 2
- 6
0
votes
1 answer
Ubuntu under AD Domain Controller: UnsatisfiedLinkError: no mssql-jdbc_auth-8.4.1.x64 in java.library.path
I've added Ubuntu 20.04 under AD Domain controller and have installed MsSQL Server on Ubuntu machine.
My sqlcmd localhost works perfectly with windows authentication
$ sqlcmd -S localhost
1> select @@version
2> GO
…

Swapnil Kotwal
- 5,418
- 6
- 48
- 92
0
votes
2 answers
java.lang.UnsatisfiedLinkError: no gurobijni90 in java.library.path
I own an academic license for Gurobi.
I followed the guide, but ended up with a problem.
The steps I went through are:
downloaded the Gurobi .tar.gz
extracted it in the /opt folder with the command tar xvzf gurobi_installer.tar.gz
a folder named…

devOn
- 45
- 1
- 8