On Mon, Jun 2, 2008 at 8:26 AM, Felix Schwarz <felix.schwarz@oss.schwarz.eu> wrote:
In my understanding Jython better suited/the best possibility if I want to call Python from Java code. If the main program is in Python, using Jython will restrict you on a Python feature set that is roughly the same as in Python 2.2.
So I think JCC is basically the right thing to do as this is the only way you can always use the latest Python features (even Python packages that are written in C) and the latest Java (GCJ always had threading issues and is generally hard to debug).
Furthermore using JCC you can even use Java from C++ without too much hassle - quite cool I think :-)
Sorry, my wording was not detailed enough. JCC does "JNI the other way round" so it calls Java from C++. Therefore there is no System.loadLibrary which could be patched. Instead I have to rely on the standard linker configuration (or use rpath).