From: Robert W. Bill <rbill@di...> - 2001-08-20 21:55:07
---------- Forwarded message ----------
*moved to jython-users@...
On Mon, 20 Aug 2001, Young-Jin Lee wrote:
> Hi, all.
> I have a question on the embedded Jython. It seems like that Jython
> enables a Java application to use a Python interpreter. Then I'm curious
> if the following is possible with Jython and Java. I have a Java
> application and I want to use one of the Python extension, VPython. Can
> my Java application call VPython's method if it uses Jython or not?
> Is there any other way for a Java application to use Python extension?
> Thanks in advance. I'm looking forward to hearing your advice.
> Young-Jin Lee
The safest way to say this is that Java can use any module/extension that
Jython can use. Jython cannot use C extensions. If your VPython extension
is in C, then VPython will not run in Jython (without extra work). If
your VPython extension has no C dependencies, test it in Jython to ensure
there are no unexpected problems. If it tests OK, you're ready to use
it from Java.
Other projects have sought Java-CPython integration, but all such projects
have been quite for some time. There appears to be no activity on such a
tool other than Jython (although I've had trouble staying up with the
other Python lists lately, so could be mistaken).