JNI Section Index | Page 6
i want to ask if there is any possibility how to map C struct to Java using JNI. I need to move some data provided in struct to Java application using JNI.
Mapping of C struct to Java using JNI
Hi, i want to ask if there is any possibility how to map C struct to Java using JNI. I need to move some data provided in struct to Java application using JNI....more
I want with a java programm to call functions from a dll in c.
I want with a java programm to call functions from a dll in c.
Here is my problem :
Someone give me a dll and the .h .
Here is file.h :
#ifndef u_char
#define u_char unsigned char
#endif
int Code...more
Is JNI able to be multi-processing? and How can I receive Unicode from C-DLL?
Is JNI able to be multi-processing? and How can I receive Unicode from C-DLL?
Java exception is occured when calling C-DLL through JNI in multi-processing. Is JNI able to be multi-processing? If ye...more
Are there any environment variables that can help me diagnose problems with my JDK/JRE configuration?
Yes, When set to any value, the _JAVA_LAUNCHER_DEBUG environment variable causes the JRE to generate numerous debug messages at startup--often useful in resolving configuration problems.
Here's...more
Creating Shared Library: I am trying to write the HelloWorld program using JNI, but have a problem in creating the shared library.
Creating Shared Library: I am trying to write the ...
Creating Shared Library: I am trying to write the HelloWorld program using JNI, but have a problem in creating the shared library. The error sa...more
How to map C++ char**, int* and Enum types in Java?
How to map C++ char**, int* and Enum types in Java?
Hi,
I am writing a Java application which uses C++ code. I have a function that takes char**, int* and Enum types in C++.
How should I write ...more
Is it possible to call a DLL which is residing on NT server from a Java program which is residing on UNIX server using JNI?.
Is it possible to call a DLL which is residing on NT...
Is it possible to call a DLL which is residing on NT server from a Java program which is residing on UNIX server using JNI?. or can we use JN...more
What is JVMDI? Where can i find more information about JVMDI?
The JavaTM Virtual Machine Debug Interface (JVMDI) is a programming interface used by debuggers and other programming tools. It provides a way both to inspect the state and to control the executio...more
What is JVMPI? Where can i get more information about it?
The JavaTM Virtual Machine Profiling Interface (JVMPI) is an experimental interface for profiling. More information can be found at the following URL's:
JavaSoft - Java Virtual Machine Profiler I...more
How do I run my java file through Visual C++ Debugger.
How do I run my java file through Visual C++ Debugger....
How do I run my java file through Visual C++ Debugger. I have built a java file that uses JNI to call function from a dll written in C++. ...more
How can i manually unload a library that i load using System.loadLibrary command without close browser.
I don't know of a way to do that, but if you own the code in question, you might want to redesign hte problem a little bit.
I assume that it is a resource-heavy library or that you want to do some...more
I have a C++ function that uses NewStringUTF like so:
Hello,
I have a C++ function that uses NewStringUTF like so:
jstring str1 = env->NewStringUTF(columnNames);
jstring str2 = env->NewStringUTF(formatInfo);
env->CallStaticVoidMethod(c...more
Need to call a C++ method which takes user defined classes as arguments (for ex: calculateSalary(Employee[] empVector)).
Need to call a C++ method which takes user defined classes as arguments (for ex: calculateSalary(Employee[] empVector)). I have read documentation on JNI, but the closest I got to passing objects w...more
"required mapping already in use": When using JNI, what is the essence of the error message "lib___.so: required mapping 0x10000 size 0xcc00 is already in use by file /bin.../native_threads/java (lib___.so)", where lib___.so is the C module compiled into a dynamic loadable library?
Note: I'm not an expert on linker issues, so this answer may not address all occurrences of this issue, but it helped mine.
Our project involved converting a standalone C program into a library w...more
Where can I find information on using Purify to find leaks etc?
Purify, Quantify, and PureCoverage with Java 1.2 on SPARC Solaris
Purify and Java
Technote: 5772 from Rational
more