docs/reference-manual/native-image/InteropWithNativeCode.md
You can use Native Image to convert Java code into a native shared library and call it from a native (C/C++) application just like any C function. There are two mechanisms for calling natively-compiled Java methods: