jyni

JyNI Eclipse setup

夙愿已清 提交于 2019-12-10 23:19:39
问题 I have the following Java file in Eclipse. package java_python_tutorial; import org.python.core.PyInstance; import org.python.util.PythonInterpreter; public class MainJython { public static void main(String[] args) { PythonInterpreter python = new PythonInterpreter(); python.execfile("pytest/test_np.py"); // PyInstance test = (PyInstance) python.eval("Test()"); // test.invoke("printArr"); python.close(); } } If I include just the Jython JAR, running the file will result in an ImportError: no