It’s been two years since we published a revision to our Native Image Quick Reference and much has changed since then! The biggest update? Native Im

Native Image Quick Reference — GraalVM for JDK 23

submited by
Style Pass
2024-11-13 12:30:04

It’s been two years since we published a revision to our Native Image Quick Reference and much has changed since then! The biggest update? Native Image became part of the GraalVM distribution, no need for a separate download! In the meantime, our team has focused on improving the developer experience by shortening build times, adding new useful features, and including several widely-used host options that have now become public APIs. In this quick reference, we highlight some of the key updates to Native Image, particularly around optimizations and performance.

This quick reference is designed to fit neatly on an A4 or US Letter paper, making it easy to print. The PDF versions are available below:

There are two ways to build Java applications ahead of time: using native-image on the command line or with Native Build Tools.

For container deployments, we recommend taking advantage of Native Image containerization and linking options (Linux only) to reduce dependencies on the runtime libraries. You can create a fully static native image using the --static --libc=musl option and run it in a lightweight container, even a scratch container, without any runtime dependencies!

Leave a Comment