GraalVM, Reflection and Native Image

4
0
Send lab feedback

Description

In this lab you will learn how to deal with dynamic features such as reflection when compiling Java applications ahead-of-time using GraalVM Native Image.

You will:

  • Learn how to build Java code that uses reflection into standalone executables, using the native-image tool.
  • Learn about the assisted configuration tooling available with GraalVM.

GraalVM Native Image makes it possible to compile any Java application ahead-of-time into a native executable that starts almost instantaneously, provides peak performance with no warmup, and requires less memory and less CPU. It's perfect for containerized workloads and microservices—which is why it has been embraced by Micronaut, Spring Boot, Helidon, and Quarkus.

Expected Time to Complete

30 mins

Intended Audience

Application Developer, DevOps Engineer

Level

Beginner

Products/Services

Oracle GraalVM, Cloud Infrastructure, Oracle Linux

Technology

Native Image, Java, Compute

Changelog

  • November 30, 2021 - Initial version
  • May 1, 2025 - Update to Oracle GraalVM for JDK 24

Acknowledgements

  • Owners - Kristian Foster
  • Contributors - Shaun Smith, Olga Gupalo
Difficulty
Beginner
Time Limit
45 minutes


Views
3890

Students
94


Authors
GraalVM
GraalVM @ Oracle Labs



Topics
Native ImageGraalVM EnterpriseOracle Cloud ComputeOracle LinuxVS Code
SSR