native-artifact-for-embedding
Installation
SKILL.md
Building a native artifact you can embed
Embedding is not the same job as running a program. A prebuilt native distribution is built to be its own process; you need something that opens inside a JVM that has already mapped the host's system libraries. Most prebuilt bundles cannot do that, and the failure is invisible on any machine that also has the library installed system-wide — the loader silently uses that one instead. Build the artifact yourself, in a container, and make the build refuse to produce a slice that cannot load.
Traps
A prebuilt portable bundle is usually not a library. Two independent reasons, and both are easy to check before you spend a day on it: