#!/usr/bin/env python# -*- coding:utf-8 -*- import jpype if __name__ == '__main__': classpath = './jar/whoareyou.jar' jpype.startJVM(jpype.getDefaultJVMPath(), '-ea', "-Djava.class.path=%s" % classpath) WhoAreYou = jpype.JClass("kr.co.demo.WhoAreYou") obj = WhoAreYou() ret = obj.whatyourname('hello') print ret WhoAreYou2 = jpype.JPackage("kr").co.demo.WhoAreYou obj2 = WhoAreYou() ret = obj.whatyourname('world') print ret jpype.shutdownJVM()
2018년 7월 9일 월요일
[Python] Python 에서 java 호출
pip install JPype1
피드 구독하기:
댓글 (Atom)
docker redmine 설치
docker-composer.yml version: '3.1' services: redmine: image: redmine restart: always container_na...
-
용량이 큰 파일 업로드 시 net::ERR_CONNECTION_RESET 오류 발생할 경우. http_server = tornado.httpserver.HTTPServer(app, max_buffer_size=10485760000) upload_for...
-
# !-*- coding:utf-8 -*- import os import sys from PyQt5 import uic from PyQt5.QtCore import Qt from PyQt5.QtWidgets import QDialog , QAppl...
-
for _row in cur: if isinstance(elem, cx_Oracle.LOB) or isinstance(elem, cx_Oracle.CLOB) or isinstance( elem, cx_Oracle.BLO...
댓글 없음:
댓글 쓰기