On 9 Aug 2005 05:55:39 -0700,
wrote:
> I know that if you call C++ from java, you have to use JNI. But how
> to call Java from C++?
Much of what you do in native methods involves making calls from C to
Java methods, or accessing fields in Java objects. In other words
there is no real distinction, you use JNI for calls in both
directions.
If you also want to launch a JVM from C, there are a small number of
functions described in the JNI spec under "invocation" for just that
purpose.
/gordon
--
[ do not email me copies of your followups ]
g o r d o n + n e w s @ b a l d e r 1 3 . s e