ProblemYou need to go the other way, calling Java from C/C++ code. SolutionUse JNI again. DiscussionStarting from 1.1, JNI provides an interface for calling Java from C, with calls to:
JNI lets you add Java to legacy code. That can be useful for a variety of purposes and lets you treat Java code as an extension language (just define or find an interface or class like Applet or Servlet, and let your customers implement it or subclass it). |