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
3
votes
0 answers

Refer to windows environment variables in IntelliJ IDEA Run Configuration VM options

I'm wondering if it is possible to refer to an environment variable, e.g PATH, in the VM options field in the Run Configurations window in IntelliJ IDEA like shown in the below screenshot The above example does not work. I've tried with $PATH$ as…
3
votes
2 answers

Add java.library.path to java manifest

The java.library.path can be set before or during the execution of a java app (either by setting the global environment variables of the java library path or by using a flag when running the java exec jar). Can it be set inside the manifest file of…
Rann Lifshitz
  • 4,040
  • 4
  • 22
  • 42
3
votes
0 answers

JNI code in Windows works with PATH but not java.library.path

Java 1.6 on Windows I am working with a Java library that uses JNI. I want to point it at the DLL's using the java.library.path environment variable, but it doesn't work. When I put the same paths in the PATH variable, it works fine. Successful…
MikeS
  • 65
  • 10
3
votes
1 answer

where to add Apr based Native Library for tomcat?

While Running Tomcat I am getting this.I read about it that I have to add Apr based native library for tomcat. i had downloaded this Apr native dll zip file from here .But Can you please tell where i have to install or put it.I go through this stack…
Anurag_BEHS
  • 1,390
  • 2
  • 22
  • 36
3
votes
1 answer

how to specify native library path in JRuby?

I am trying to initialize JUnixSocket in JRuby but it is failing as it is unable to locate the native library. I am getting error : java.lang.UnsatisfiedLinkError: Could not load junixsocket library, tried…
rajsekhar
  • 403
  • 1
  • 5
  • 14
3
votes
0 answers

Linking native hidapi and libusb-1.0 library in eclipse on Ubuntu

I am new to Ubuntu and searched on-line for two days, tried a lot of solutions but do not have any luck yet. If anyone can help with this, I will appreciate. I wrote a program in Java with eclipse on Windows. My program makes use of Java hidapi…
3
votes
2 answers

How to include native library (JNI) in play 2.1 RC2?

I am using Play Framework 2.1 RC2 to build an application that utilizes TFS Java SDK. TFS APIs require a set of native dlls (e.g. native_auth.dll) to be included. How do I make the native libraries available when the application is running? Where…
Slick
  • 860
  • 3
  • 12
  • 19
3
votes
0 answers

How can I make a jar with native library in Intellij IDEA?

How can I make a jar with native library in Intellij IDEA? In the JVM it looks like Djava.library.path=C:\Users\User\workspace\lib\native\win
Grinch
  • 57
  • 1
  • 6
2
votes
1 answer

How do I distribute a LWJGL jar?

I need help, I followed the following tutorial on setting up my project. http://lwjgl.org/wiki/index.php?title=Setting_Up_LWJGL_with_NetBeans And I added the following run command -Djava.library.path='C:\Program Files…
garyamorris
  • 2,587
  • 2
  • 17
  • 23
2
votes
0 answers

Loading 2 .so native libs in linux from Java via JNI

I'm having some problems loading 2 libs where one depends on another in Linux. Let's say I have 2 libs, libA.so and libB.so, libB.so depends on libA.so (calling functions from it). I need to load libB.so from Java via JNI and call some native…
Zorkus
  • 484
  • 1
  • 4
  • 13
2
votes
0 answers

no mssql-jdbc auth-8.4.1.x64 in java.library.path on linux

I am trying to use the SQL Server integratedSecurity (jdbc: sqlserver: //x.y.z.w; databaseName = TEST; integratedSecurity = true) with java 1.8 on Linux but I get the following error: no mssql-jdbc auth-8.4.1.x64 in java.library.path All my research…
2
votes
2 answers

Load dependent .so from other shared library via JNI

I want to call some function of liba.so from other libb.so. libb.so is dynamic so library that implement native method which i have loaded using System.loadLibrary("b") inside JNI. first i have set complete path for both of .so inside jni using…
2
votes
0 answers

Error loading native library runtime - JAVA

I am getting this error + > Exception in thread "main" java.lang.UnsatisfiedLinkError: no lwjgl in java.library.path at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1867) at java.lang.Runtime.loadLibrary0(Runtime.java:870) at…
user10148286
2
votes
2 answers

sqljdbc_auth.dll was not found inside JAR. (under IntelliJ)

I cannot solve this problem: Exception in thread "main" java.lang.RuntimeException: java.io.FileNotFoundException: File /x64/sqljdbc_auth.dll was not found inside JAR. at…
2
votes
3 answers

Class.forName() is not working with a particular class

I am trying to load with java reflection a bunch of classes. Everything seems working fine (I am handling the exception if the class is not found). However there is a particular class that is raising another exception that is not thrown by call to…
rakwaht
  • 3,666
  • 3
  • 28
  • 45