jpype调用jar

Posted ppqchina

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了jpype调用jar相关的知识,希望对你有一定的参考价值。

import easygui
import os
from jpype import *


jarpath = "d:\jar"
print "jarPath: %s" % jarpath
jpath=getDefaultJVMPath()
# jarpath= os.path.join(os.path.abspath(‘.‘),jarpath)
print jpath
startJVM(jpath,"-Djava.ext.dirs=%s" %jarpath)
java.lang.System.out.println("Hello World")

Web = JClass(‘com.***.indicator.tool.WebServiceHelper‘)












以上是关于jpype调用jar的主要内容,如果未能解决你的问题,请参考以下文章