Loading topic
.class files and running machine code, and how GraalVM Native Image moves most of that work to build time. It is the first of 13 chapters, so it sets up the model that later chapters build on: static analysis, metadata, initialization and the trad6 min readnative-image, as in the earlier chapter, and that you know how the JVM loads classes lazily. It explains how Native Image decides which classes, methods and fields go into the executable. Most surprises with native images come from that d6 min readnative-image and know what the closed-world assumption means. You should also be comfortable with Class.forName, getResourceAsStream, and java.lang.reflect.Proxy on a normal JVM.6 min readnative-image. It also assumes you know the closed-world assumption and why reflection, resources and proxies are invisible to static analysis. You should be able to read JSON and know the basic layout of a Maven or Gradle project.6 min readnative-image and that you know what a Java static initializer is. You should also know that the closed-world analysis decides which classes end up in the image. Here you will learn when a class's static initializer runs in a native image,6 min readnative-image by hand and know what reachability metadata is. It also assumes you can read a basic pom.xml or build.gradle file and have a GraalVM JDK installed. Running native-image manually works for a single class. Real projects have dependencies, tests, pr5 min readnative-image or a Maven/Gradle plugin, and that you know roughly what the JIT compiler 8 min readnative-image or a Maven or Gradle plugin, and that you know basic Docker: multi-stage builds, FROM, COPY and 7 min readnative-image, know what reachability metadata is, and have used the tracing agent at least once. It also assumes you know the difference between build-time and run-time class initialization. Here you will learn to sort a failure into a ca7 min readnative-image, and that you know what reachability metadata is and why reflection needs it. It also assumes basic Maven or Gradle skills. Frameworks sit on top of those mechanics. Your job is to see what each one does for you and what is s6 min read