JPython-C++

Randy Hudson rgh at inmet.com
Fri Sep 3 12:50:14 EDT 1999


Adrian Eyre wrote:
> 
> Is there any way of embedding/extending JPython/Java in/with C/C++?
> 
> I need to be able to use a C++ extension module with JPython, and/or
> embed JPython into C++. Is there any way to achieve this? I don't
> care how hacky it is, providing it works.

Take a look at the Java Native Interface, which is a standard part of
Java. This allows you to 
(1) invoke native (C, C++) methods from Java and/or 
(2) start up a Java Virtual machine and execute Java code from 
within a native program.

-- Randy Hudson
   AverStar Inc.




More information about the Python-list mailing list