alibaba / pemja

Apache License 2.0
89 stars 24 forks source link

findClass module was missing in pemja #6

Closed zhjdotxmsme closed 2 years ago

zhjdotxmsme commented 2 years ago

python -c "from pemja import findClass; Integer = findClass('java.lang.Integer'); print(Integer.toHexString(Integer.MAX_VALUE))" Traceback (most recent call last): File "<string>", line 1, in <module> ImportError: cannot import name 'findClass' from 'pemja' (/usr/local/lib/python3.8/site-packages/pemja/__init__.py)

zhjdotxmsme commented 2 years ago

I misinterpret the way that python call java, it should be based on jvm to python call back java api. It is my fault, close issue