0

我检查了我在 2007 年用 Python/Jython 编写的旧脚本,它抛出了错误:

ImportError: cannot import name PyJavaClass

这个类会发生什么,我使用 Xubuntu 13.4 和 Jython 2.5.2

4

1 回答 1

2

PyJavaClass是 Jython 2.2 的一部分:https ://bitbucket.org/jython/jython/src/bed9f9de4ef3c6d38bc009409c95ebfc55e0c7d0/src/org/python/core?at=2.2 。

它在 Jython 2.5 中消失了。现在有PyJavaType。看

我在发行说明 ( http://www.jython.org/latest.html )中找不到有关此更改的任何信息。

于 2013-08-26T16:06:22.283 回答