#!/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...
-
docker-composer.yml version: '3.1' services: redmine: image: redmine restart: always container_na...
-
출처] https://herohjk.com/41 import os from PIL import Image from reportlab.pdfgen.canvas import Canvas from PyPDF2 import PdfReader, PdfWrite...
-
poppler 다운로드 https://github.com/oschwartz10612/poppler-windows/releases/tag/v23.11.0-0 압축 해제 C:\poppler-23.11.0 pdf2image 설치 pip install pd...