CPython From Java?
I need to call CPython code from Java. What tools/APIs/libraries exist out there to help me do this? Jython is not an option since the Python code is heavily dependent upon numpy.
Solution 1:
You can take a look at using Jepp to embed CPython into Java. Read documentation here.
edit: For windows the project has prebuilt binaries for Python 2.4, 2.5, and 2.6. For Linux/Unix systems, you have to build it yourself.
Solution 2:
You probably want to read the docs on embedding a CPython interpreter. Also, on how to load native libraries in Java (was that called JNI?)
Post a Comment for "CPython From Java?"