Questions tagged [java-native-library]

27 questions
0
votes
0 answers

Force 64-Bit JDK/JRE to pick the 64-Bit library on Linux

Here is my container environment and configuration As you can see the JVM and the Linux are both 64-Bit. The library location also has 64Bit liars3wapi64.so file available and that is what I have set as LD_LIBRARY_PATH using the following 2…
0
votes
0 answers

How to create a java event listener for hardware changes?

I am writing a program as a part of a personal project. I need to create an event listener for hardware changes in order to continue the project. I tried to used JNA 5.13.0 to do this but it was unsuccessful. The programme runs on macOS. Can anyone…
0
votes
0 answers

Xamarin Android Mapping field Java.Lang.Enum to C# Enum

I have a problem with converting Java enum to C# enum when binding a Java native library. I have already…
0
votes
1 answer

Is it possible to make a native in pure Java using python?

Using JNI, or Java Native Interface, it is possible to use c++/c types and functions in Java. I want to do something similar with Python. There are many libraries for executing Python code from Java such as Jython, but I don't want to use any…
0
votes
0 answers

JNI: SIGSEGV when calling native function from Java, after native registration of same function on library second opening

I have an Android app that is structured in the following way: CORE: Is the class of the accessibility service that dinamically loads a few dex files. It will be loaded when app starts; MODULE: Is the classe created by loading relative dex…
0
votes
2 answers

how to find the native c++ function who called a java method in a android app and in which library?

im reverse engineering a app (with the permission of the dev) and im still new to this but is it possible to get the name of the native function thats calling a java method? and in which library?? i know for sure the native functions are being…
0
votes
0 answers

Why are native libraries seen only in target/classes in IntelliJ?

I had an OpenJFX project in Eclipse which have severals Maven projects. I have a native library called EDSDK which is a library to interact with Canon Photo Cameras. This library have several DLLs and the JAR are all located in a directory called…
Rushino
  • 9,415
  • 16
  • 53
  • 93
0
votes
1 answer

Assembly code inlining in java and how to distinguish 32bit and 64bit os in java

I need to write some assembly injection in java code for tasks at my university. I have a class with native function import java.io.File; public class AsmOR { static { String path = System.getProperty("user.dir"); …
Saliery
  • 155
  • 5
  • 16
0
votes
1 answer

Where do you put native libraries for a web app (in Caucho Resin)?

Where do native libraries for a web app go so that that Resin will load them?
Phoebe
  • 2,774
  • 3
  • 22
  • 27
0
votes
1 answer

invoke methods from .so files residing in project folder from eclipse plugin

I have developed a plugin for Eclipse which has to access native libraries. Is it mandatory that the .so file resides in /usr/lib for the plugin to access it? Unless it is present there, my plugin cannot access the methods within it. I need my…
-2
votes
1 answer

Mapping JNA Java to Native C Shared Library

Trying to pass the following from Java code to a shared C library .so. I am very new to JNA if someone would point me i the right direction i would be very grateful. The error i am getting is: java.lang.Error: Structure.getFieldOrder() on class…
docker dev
  • 91
  • 3
  • 10
1
2