A Embedded Java VM problem.
843829Jun 15 2001 — edited Feb 19 2002Heres the problem folks,
____________________
OS: Red Hat 7.1
Java Version: JDK 1.1.7v3
C Compiler: gcc
____________________
I have a native C function that IS able to invoke a java VM, locate a java class and execute a method in that class. By itself the function works fine.
Then, I compiled this C function into a shared library (it compiles fine) to be used by a larger C application. When this function is called from the larger C application, it crashes on the JNI_CreateJavaVM() call, evidently due to a segmentation fault. Another thing that might be useful to know...the C function is called via a function pointer from the larger C application.
Is there a problem with invoking a JVM from code in a shared library?
cheers
.a