Python调用java
使用python的JPype包
import jpype
from jpype import JClass, startJVM, getDefaultJVMPath, shutdownJVM
import time
import os
libjar = ":".join(["lib/"+jar for jar in os.listdir("lib")])
# 启动JVM并指定JAR包路径
startJVM(getDefaultJVMPath(), "-ea", "-Djava.class.path=openapi-java-client-2.0.0-RC4.jar:"+libjar)
...
参考: https://www.cnblogs.com/kaibindirver/p/11768977.html
This line appears after every note.
Notes mentioning this note
Projects
0.百科全书
[[github问题]] 2024.10.08
[[笔记本电脑]]
[[华为手机安装google框架]]
[[科研问题]]
[[github问题]]
[[huggingface]]
[[linux]]
[[Python使用]]
[[Vscode使用]]
[[港科广二期HPC使用]] 2025.07.25
[[顶会论文及检索网址]] 2025.10.10
1.前后端
[[使用Flask快速构建浏览器实现图片交互]]