GraalVM logo

This documentation is for an old GraalVM version. See the latest version.


◀Table of Contents

Native Image How-to Guides

These guides are to help developers get started with GraalVM Native Image, acquaint them with the available features, and describe potential usage scenarios. Here you will learn how to:

  • Access Environment Variables
  • Add Logging to a Native Executable
  • Build and Run Native Executables with JFR
  • Build Java Modules into a Native Executable
  • Build a Micronaut Application into a Native Executable
  • Build a Native Shared Library
  • Build a Polyglot Native Executable (Java and JavaScript)
  • Build a Spring Boot Application into a Native Executable
  • Build a Static or Mostly-Static Native Executable
  • Build a Native Executable with Reflection
  • Containerise a Native Executable and Run in a Docker Container
  • Create a Heap Dump from a Native Executable
  • Debug Native Executables with GDB
  • Include Resources in a Native Executable
  • Optimize a Native Executable with Profile-Guided Optimizations
  • Use GraalVM Dashboard to Optimize the Size of a Native Executable
  • Use Gradle to Build a Native Executable from a Java Application
  • Use Maven to Build a Native Executable from a Java Application
  • Use Shared Reachability Metadata with Native Image Gradle Plugin
  • Use System Properties in a Native Executable

Note: To follow these guides, a user is expected to have GraalVM installed with Native Image support.

API Documentation
  • GraalVM SDK Javadoc
  • GraalVM Truffle Javadoc
Learn More
  • Open Source Repository
  • Release notes
  • Demos
  • Blog

Copyright © 2024, Oracle and/or its affiliates. All rights reserved. Oracle and Java are registered trademarks. Other names may be trademarks of their respective owners.