import easyguiimport osfrom jpype import *
jarpath = "d:\jar"print "jarPath: %s" % jarpathjpath=getDefaultJVMPath()# jarpath= os.path.join(os.path.abspath(‘.‘),jarpath)print jpathstartJVM(jpath,"-Djava.ext.dirs=%s" %jarpath)java.lang.System.out.println("Hello World") Web = JClass(‘com.***.indicator.tool.WebServiceHelper‘)
时间: 2024-10-19 18:20:53