CPython 2.7 + Java
<p>My major program is written in Python 2.7 (on Mac) and need to leverage some function which is written in a Java 1.8, I think CPython cannot import Java library directly (different than Jython)?</p>

<p>If there is no solution to call Java from CPython, could I integrate in this way -- wrap the Java function into a Java command line application, Python 2.7 call this Java application (e.g. using <code>os.system</code>) by passing command line parameter as inputs, and retrieve its console output?</p>

<p>regards,
Lin</p>