build-native-image-gra…
Build GraalVM native images using Gradle Native Build Tools. Use this skill to build Java…
Build and troubleshoot GraalVM Native Image applications. Use this skill to build Java applications with GraalVM Native Image, configure CLI options, or resolve build or runtime issues.
$ npx -y skills add oracle/graal --skill building-native-image --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/building-native-imageContext preview
The summary Claude sees to decide when to auto-load this skill.
Build and troubleshoot GraalVM Native Image applications. Use this skill to build Java applications with GraalVM Native Image, configure CLI options, or resolve build or runtime issues.
name: building-native-image description: Build and troubleshoot GraalVM Native Image applications. Use this skill to build Java applications with GraalVM Native Image, configure CLI options, or resolve build or runtime issues.
# Building Native Image
1. Compile your Java file with `javac`. 2. Build the Native Image:
$JAVA_HOME/bin/native-image <app-name>
3. Run the resulting executable:
./app-name
4. If Native Image cannot find your class file, set the classpath explicitly with the `-cp` option.
If you encounter runtime errors related to reflection, JNI, resources, serialization, or dynamic proxies, consult [`references/reachability-metadata.md`](references/reachability-metadata.md) before attempting a fix. Use this reference for:
To configure classpath, optimization level, output name, platform target, monitoring, or other CLI flags, see [`references/native-image-options.md`](references/native-image-options.md).
| Topic | File | |-------|------| | Native Image CLI options | [references/native-image-options.md](references/native-image-options.md) | | Missing reachability metadata | [references/reachability-metadata.md](references/reachability-metadata.md) |
GraalVM compiles applications into native executables that start instantly, scale fast, and use fewer compute resources 🚀
Repo: oracle/graal
Build GraalVM native images using Gradle Native Build Tools. Use this skill to build Java…
Build GraalVM native images using the native-maven-plugin (org.graalvm.buildtools). Use this…
Reimport Native Image's vendored libcontainer from a newer JDK while preserving local…