Skip to main content
Filter by
Sorted by
Tagged with
6 votes
0 answers
445 views

In System.c, the JVM function corresponding to Java’s System.currentTimeMillis() is registered using RegisterNatives. In contrast, System.identityHashCode(Object) calls a JVM function directly based ...
YujiSoftware's user avatar
  • 1,738
972 votes
39 answers
1.6m views

When I try opening Eclipse, a pop-up dialog states: Failed to load the JNI shared library "C:/JDK/bin/client/jvm.dll". Following this, Eclipse force closes. Here are a few points I'd like to ...
2 votes
2 answers
402 views

I have a very large Android project with hundreds of 3rd party libraries. Some of those libraries have native .so libs inside then. I can see all .so files using Android Studio -> Analyze Apk... ...
Alexey's user avatar
  • 7,502
3 votes
3 answers
151 views

I'm trying to handle EINTR error from POSIX connect call. I'm running on OSX this connect code: JNIEXPORT jint JNICALL Java_io_questdb_network_Net_connect (JNIEnv *e, jclass cl, jint fd, jlong ...
Alex des Pelagos's user avatar
613 votes
14 answers
759k views

How can I tell if the JVM in which my application runs is 32 bit or 64-bit? Specifically, what functions or properties I can used to detect this within the program?
BobMcGee's user avatar
  • 20.2k
550 votes
10 answers
266k views

While playing this puzzle (It's a Java keyword trivia game), I came across the native keyword. What is the native keyword in Java used for?
whirlwin's user avatar
  • 16.6k
0 votes
0 answers
77 views

I have very little experience with c++ or java and I want to make an Android app with Unreal Engine 5.3, which can either scan or be opened by scanning a QR Code and do something with the Information ...
Logoiuy's user avatar
  • 41
95 votes
42 answers
1.3m views

Consider: public class LoginCumReg implements ActionListener, KeyListener { private JFrame form; private JTextField txtunm; private JTextField txtnm; private JTextField txteml; ...
Jash Parekh's user avatar
  • 1,137
1 vote
0 answers
36 views

I am trying to pass some initialization values from jni to java. I have been able locate and correctly call the java method from my JNILib Init function but when I try to call it from a different ...
John Am's user avatar
  • 121
0 votes
1 answer
129 views

As mentioned above, I am using the PN532 reader to connect it with the application. Using the 'libnfc' as JNI library, I built the pn532_uart library as a shared library for 'Arm' based to use the ...
Wan Ammar's user avatar
13 votes
2 answers
305 views

I think I've found a bug, but I'm not sure whether to blame the JVM, JNI, NASM, GCC, or ld. The bug causes my compiled modding language called grug (see this for videos and explanations) to ...
MyNameIsTrez's user avatar
106 votes
21 answers
477k views

I'm working on a Java project that uses the JNI. The JNI calls a custom library that I've written myself, let's say mylib.dll, and that depends on a 3rd party library, libsndfile-1.dll. When I run ...
dB''s user avatar
  • 8,440
0 votes
0 answers
36 views

I want to write a native android library that can access shader and texture files from the res/raw folder of my application (or rather res/assets?) without being dependent of a specific activity ...
Zack's user avatar
  • 149
23 votes
4 answers
13k views

In my AndroidStudio project I created native library using JNI with CMake and CPP code. Everything builds and runs OK, but when I try to commit and push my code to git, the CodeAnalysis appears in the ...
Denis Dmitrienko's user avatar
0 votes
1 answer
68 views

I am using the Rust jni crate, and currently have a native method defined. I am trying to figure out how I get a java field, which is a different class that I have also made, and interact with it ...
An1nterestingName's user avatar
0 votes
1 answer
165 views

Recently, I have been working on a small gui app that uses GTK4. This gui app uses a combination of Java and Rust (I am using the jni crate for interop). I am creating the Gui window using the Gtk-rs ...
Radon's user avatar
  • 117
-1 votes
1 answer
138 views

I'm working on a class project and about half of our group knows c++ and the other half only knows Java FX. Our project is a synthesizer, which involves a good amount of DSP and GUI stuff. I figured ...
Taylor's user avatar
  • 3
0 votes
1 answer
83 views

My app is a game that consumes a native.so file and has a JNI layer. Whenever the OS kills my app (for example during an in-app update), I see this warning in logcat. What does it mean and how can I ...
Bungles's user avatar
  • 2,319
96 votes
12 answers
229k views

In Ubuntu 12.04, I have jdk7 from sun/oracle installed. When locate jni.h, it prints multiple locations /usr/lib/jvm/java-6-openjdk-amd64/include/jni.h /usr/lib/jvm/jdk1.7.0_07/include/jni.h ... In ...
Richard's user avatar
  • 15.8k
0 votes
0 answers
43 views

I'm try to exec Log.isLoggable after JNI_CreateJavaVM. Got the error as below with Android 14 and above. 01-02 11:35:15.704 24244 24244 F zygote64: runtime.cc:707] Pending exception java.lang....
Nelson's user avatar
  • 183
0 votes
0 answers
159 views

For some time I am trying to solve a bug in our native C++ shared library using traces but it is not easily reproducable (multithreading/networking involved). We have Android (Java) code instantiating ...
nikoladsp's user avatar
  • 155
0 votes
1 answer
120 views

I am developing a custom Gluon Attach plugin and encountering issues with passing a Java Runnable object from Java to JNI. Despite reviewing the Gluon Attach plugin source code (which unfortunately ...
CTO - Abid Maqbool's user avatar
1 vote
0 answers
68 views

Running a Java program on a raspberry Pi 5.0 (64bit) under Open-JDK-17. I'm trying to get Bluetooth working (64bit) with the bluecove Java API. One of my shared libs libbluecove_aarch64.so does not ...
Quentin Meek's user avatar
1 vote
0 answers
64 views

I have a program in jni (java native interface), which should display the text "hello world" in C #include "MyJavaClass.h" #include <jni.h> #include <stdio.h> // ...
Cabralito's user avatar
-1 votes
1 answer
192 views

I'm working on a Minecraft library for my own mods to use and i ran into a problem with JNI. I'm still new to the JNI and c++ stuff so i might've made a mistake but after hours of searching i didn't ...
Progames723's user avatar

1
2 3 4 5
197