Java Dynamic Management Kit 3.2 Programming Guide | ||||
---|---|---|---|---|
![]() | ![]() | Chapter 9. Troubleshooting | ![]() |
If a native library is not multithread-safe, using JNI to call routines implemented in the native library can cause the Java virtual machine to fail. To avoid multithreading problems with native libraries, include the Synchronized clause in your Java calls to functions in native libraries.
If a call to a routine implemented in the native library causes the Java virtual machine to fail:
Remove, if possible, all the dependencies on the Java Dynamic Management Kit.
Try to reproduce the problem in a standalone Java program to verify that the problem is not related to the Java Dynamic Management Kit.
Debug your native library by using a debugging tool.
![]() | ![]() | ![]() |
Setting the Class Path | ![]() | Getters and Setters in a C-Bean |