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.

Alexander Krapf

there are at least two ways you can do this:

  1. Keep state in a shared library that is used by all plugins.
  2. Use the JNI function JNI_GetCreateJavaVMs to query for the JVM before trying to create one.
You could also use our JunC++ion product, a tool that generates C++ proxy classes for Java classes, then your plugins could directly correspond with wrapped Java classes and you would not have to do any additional work.

You can find out more about JunC++ion at http://www.codemesh.com.

Good luck,

Alex

0 Comments  (click to add your comment)
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

About | Sitemap | Contact