Skip to Main Content

Java HotSpot Virtual Machine

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

A Embedded Java VM problem.

843829Jun 15 2001 — edited Feb 19 2002
Heres 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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 19 2002
Added on Jun 15 2001
3 comments
145 views