jlink's strip-debug option relies on OS native utility (ex. objcopy on Liunx). Some OS (ex. OEL) don't bundle it by default. If it is missing, jlink will properly fail with an java.io.IOException.
It could be useful to add, in the jlink doc, a clarification to mention that an external util is required and which one.
[1] https://docs.oracle.com/en/java/javase/19/docs/specs/man/jlink.html#plugin-strip-debug
It could be useful to add, in the jlink doc, a clarification to mention that an external util is required and which one.
[1] https://docs.oracle.com/en/java/javase/19/docs/specs/man/jlink.html#plugin-strip-debug