Multiple jvms - I wish to create plugins for a software. Each plugin will be a C library creating a jvm and calling the classes needed.
Created May 4, 2012
Alexander Krapf
there are at least two ways you can do this:
- Keep state in a shared library that is used by all plugins.
- Use the JNI function JNI_GetCreateJavaVMs to query for the JVM before trying to create one.
You can find out more about JunC++ion at http://www.codemesh.com.
Good luck,
Alex