Run JVM-based code in Go efficiently
go-jdk is OpenJDK-like implementation written in Go with a goal to deliver a great embeddable JVM for Go applications without CGo.
Key features:
Go->JVM
callsJVM->Go
callsnative
Java methods can be written in GoNote: this project is in its early state.
# Run Java class method (main or any other static method):
go-jdk run -class Foo.class -method helloWorld
# Disassemble Java class file with go-jdk:
go-jdk javap Foo.class
# Print IR representation instead of JVM bytecode:
go-jdk javap -format=ir Foo.class
# Print Java class dependencies:
go-jdk jdeps Foo.class