java-native-interface
Not able to write to sys/class/uwb/scan file through JNI using android application
define SCAN_FILE /sys/class/uwb_rc/uwb0/scan My aim is to write to a SCAN_FILE in android as in " echo 9 0 >/sys/class/uwb_rc/uwb0/scan "[详细]
2023-04-10 11:59 分类:问答android - javah doesn't find my class
I am having troubles generating the C header file for JN开发者_如何学编程I using javah. Here\'s the script I use while standing in the <project-dir>\\bin directory:[详细]
2023-04-10 00:00 分类:问答Provide DLL path to System.loadLibrary on export
I want to export my Java application which uses JNI interface, and loads a DLL via System.loadLibrary(\"dllName\").[详细]
2023-04-09 15:59 分类:问答access java synchronized method from native code
I have a java class that has some (private static) synchronized methods which I want to call from native code as well. with some example code it becomes more clear what I开发者_Python百科 mean[详细]
2023-04-09 15:16 分类:问答JNI build with MinGW
I have a problem with building a dll with gcc (mingw). From this site I read how to do it : http://www.mingw.org/node/41[详细]
2023-04-09 08:06 分类:问答How to use eclipse CDT for jni debugging?
How to use Eclipse CDT along with JDT to debug the jni code? Using Eclipse, is there a way by which we can debug the native code without the use of visua开发者_开发百科l studio?[详细]
2023-04-08 21:28 分类:问答java string optimizations - load-in-place algorithm
I need to optimize the actual loading/parsing of a csv file (strings). The best way I know is the load-in-place algorithms and I successfully used it using JNI and a C++ dll that loads the data direct[详细]
2023-04-08 20:37 分类:问答How to specify current working path in jni
I have Java Android application (TestApp).From my TestApp I call function from jni code: JNIEXPORT jint JN开发者_C百科ICALL Java_com_app_test_testApp_CreateFile( JNIEnv* env, jobject thiz, jobject jc[详细]
2023-04-08 12:03 分类:问答A call to PInvoke function 'Test!DllCall::initDll' has unbalanced the stack
Bit of an unusual question. I have worked out that the error is only thrown when running the program via visual studio. If I compile the application and run the compiled program it works fine. Any i[详细]
2023-04-08 11:44 分类:问答How to call C++ from Java?
I wanted to call a C++ method from Java.I rea开发者_JS百科d about JNI, but I am not getting how to get all the library files and where I should keep it in order to run the program from command line.[详细]
2023-04-08 08:58 分类:问答