Onnx is just a serialisation format (using protobuf iirc) for the network, weights, etc.
Your training framework and a suitable export is the compiler.
Onnx Runtime (which really has various backends), tensorrt, .. (whatever inference engine you are using) is your JVM.