Add JVM wrapper around code only needed for JVM.