How to call java code from Go without calling JVM for every call?

Is it possible (and if so, what is recommended) to call java code from Go , without having to run the JVM for every function call?

Ie, is there any equivalent to jpype's solution for python that allows you to run the JVM once and then import the Java classes and call them using the already running JVM?

+4
source share
3 answers

Associate your Java code with the “server” and call it using RPC, for example “rest / soap / thrift” and save the server. I don't know any system that automates this for you, though.

+3
source

cgo C, JVM, API- JNI Java- JNI. goroutines , , , , JVM Go / , pthreads.

+1

Java Java, Go, , Java, Go .

0

All Articles