The include
directory is for header files, such as jni.h
, that are needed when compiling C/C++ code that uses JNI and other native interfaces. It’s nothing to do with jlink
.
The jlink
tool can create a run-time image for another platform (cross targeting). You need to download two JDKs to do this. One for the platform where you run jlink
, the other for the target platform. Run jlink
with --module-path $TARGET/jmods
where $TARGET
is the directory where you’ve unzipped the JDK for the target platform.