Questions tagged [java-native-library]

27 questions
14
votes
1 answer

How to capture video using JMF, but without installing JMF

A videoconferencing project I was working on used JMF to capture video and audio, and transmit it to another endpoint. An issue was that my team didn't want the user of the product to have to install JMF. I thought it might be worthwhile to share…
user489041
  • 27,916
  • 55
  • 135
  • 204
3
votes
0 answers

How can I set java.library.path in gradlew installDist

I was learning JNI which uses libraries, and the tuturial is https://www.baeldung.com/jni. The java source file is package zxy; public class JNIDemo { public native void testHello(); public static void main(String[] args){ …
K. Zhu
  • 358
  • 1
  • 3
  • 12
3
votes
2 answers

Aparapi, java.lang.UnsatisfiedLinkError: libaparapi_x86_... can't find dependent libraries

I try run my aparapi java program on 4 computer. 2 computer can run perfectly, but other 2 computer throw java.lang.UnsatisfiedLinkError: ` Exception in thread "GPU" java.lang.UnsatisfiedLinkError:…
3
votes
2 answers

Native Libraries, Error: This Java instance does not support a 32-bit JVM

Hello stackoverflow community, I'm using NetBeans IDE 7.2.1, and I'm trying to compile+run a project with native libraries. My libraries require a 32 bit JVM. I'm running Windows 7 64-bit. When attempting to compile+run my project I'm met with the…
Matthew Sutter
  • 33
  • 1
  • 1
  • 4
2
votes
0 answers

Load Android Native library with Java reflection

I'm trying to load an Android native library with Java reflection, but at runtime the library is not found. Normally i load a native library with: System.loadLibrary("mylib"); and everything works as expected. Now i try to call the loadLibrary…
1
vote
1 answer

How do I configure jpackage to use native libraries on Linux

I have a Java application that uses a shared C++ library via JNI. I am targeting Windows, Mac, and Linux platforms. I have just started using jpackage to create an installer, and this works fine for the Windows platform (I have not tried Mac yet).…
Michael Ellis
  • 243
  • 3
  • 14
1
vote
0 answers

Use of Conscrypt library

How to use conscrypt library in a way that we can use a boringCrypto module? In conscrypt we have nativeCrypto class in that we have native methods present i have to utilize that methods for encryption and decryption in such a way that it is FIPS…
1
vote
0 answers

spark.driver.extraLibraryPath override original library path

I have a spark job running on AWS EMR cluster, it need access native lib(*.so), per spark's document (https://spark.apache.org/docs/2.3.0/configuration.html) I need add "spark.driver.extraLibraryPath" and "spark.executor.extraLibraryPath" options in…
1
vote
1 answer

Can't find native libraries used by apk on my phone

First of all, sorry for my english. This is not my native language. This is the first time I do something like that so i learn on the go. Context: I try to understand how the game I installed from the Play store communicates with the server. More…
Megaxr
  • 241
  • 1
  • 9
1
vote
0 answers

Bluetooth LE on Debian Raspberry Pi in Java

When i pair and connect with a BLE Device with linux commands everything works. Now i want my java program to read the same values. I looked up a lot of stuff and all libraries are based on tinyB https://github.com/intel-iot-devkit/tinyb Im using…
1
vote
1 answer

How can I bundle a library that includes nativelibraries in my JAR?

I made a project in Netbeans 6.8 and added a third-party library which included some nativelibraries. When I made a JAR of my project, only the third-party JAR was included; its nativelibrary was not. Therefore, I am unable to run my project. How…
Azfar Niaz
  • 1,516
  • 4
  • 13
  • 21
1
vote
1 answer

Export Native library to external Package in Eclipse not working. is it a Bug?

I was about to report a but to Eclipse, but I was thinking to give this a chance here first: If I add an external package, the application cannot find the referenced native library, except in the case specified at the below: If my workspace consists…
TacB0sS
  • 10,106
  • 12
  • 75
  • 118
1
vote
2 answers

UnsatisfiedLinkError: The library loads but I still get a link error

I have two Eclipse plugins: plugin-1: provides a package in .jar to other plugins. (a Java Wrapper for a C++ library) This plugin was created by clicking File->New->Other->Plug-in from Existing JAR Archives. plugin-2: has the native library .so…
MrMas
  • 1,143
  • 2
  • 14
  • 28
0
votes
1 answer

How to convert jeprof output to human readable format?

Failing while converting hprof output to gif format. jeprof --show_bytes --gif /usr/local/openjdk-11/bin/java jeprof.*.heap > /tmp/profile_1.gif Exception: Can't exec "objdump": No such file or directory at /usr/bin/jeprof line 4463. objdump -h…
amitwdh
  • 661
  • 2
  • 9
  • 19
0
votes
1 answer

How Use Native Library Existing (.a) and (.h) file to android?

I got a project for android from my work to work with a partner. From the partner they provide a library that seems to be made by c++ (native library) and must be installed in our android project, they provide a library folder containing static…
1
2