Monday, March 18, 2002 06:15 AM
Yes you can. This part of JNI is called the invocation interface. You have to launch the JVM through that interface and then you can call JNI methods from your C code.
This can be fairly tricky, which is why we developed our JunC++ion product. It generates C++ proxy classes from Java classes. These C++ classes can be used like their underlying Java counterparts and we will launch the JVM totally transparently to the programmer.
You can find out more about JunC++ion at www.codemesh.com.