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')
posted on 2016-12-22 17:05  ppqchina  阅读(1284)  评论(0编辑  收藏  举报