我试图将JAR文件加载到python程序中,并使用jar类和函数。我在用:
我的代码看起来是:
import jpype
import jpype.imports
from jpype.types import *
classPath = "-Djava.class.path='assets/JAR.jar'"
javaClass = jpype.startJVM(jpype.getDefaultJVMPath(), classPath)我有个例外:
jpype._jvmfinder.JVMNotSupportedException: JVM mismatch, python is 64 bit and JVM is 32 bit.很明显,python和java环境之间的区别是一个例外。
有解决办法吗?
发布于 2022-04-11 12:39:05
你有两个选择:
https://stackoverflow.com/questions/71827937
复制相似问题