Simplest Possible Java - C Invocation
- Install GraalVM
java -version
should print a GraalVM-related output- Install (
gu install [COMPONENT]
) the following GraalVM components:graalvm
,llvm
,llvm-toolchain
,native-image
- Run the nativebuild.sh script
- Execute the native app with
dist/NativeCalculator
Also checkout the post: GraalVM: How To Call C-Function From Java ...with an Annotation