Ben Chuanlong Du's Blog

It is never too late to learn.

Call Java Code Using JPype from Python

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

JPype is easy and intuitive to use. It is the most popular Java interface for Python currently.

import os
import sys
from pathlib import Path
import jpype


jpype.addClassPath("/path/to …