Loading topic
native-image (see the previous chapter) and know what the classpath is. It explains how Native Image decides which code ends up in the executable, and why that decision causes the most common surprises.3 min readnative-image, and that you know what the closed-world assumption means: the image builder only includes code it can prove is reachable at build time. You should also know basic Java reflection (Class.forName, getDeclaredConstructor).3 min readnative-image, and that you know the closed-world assumption: the build analyzes only what it can see statically. Here you will learn how to tell the build about code that is reached dynamically.3 min readnative-image, and that you know why reflection, resources and proxies need reachability metadata. If either point is unclear, review the previous chapters first.3 min readnative-image, and that you know what a static initializer is and when the JVM runs it. It covers when Native Image runs those initializers and what that means for your program.3 min readnative-image installed, and that you know what reachability metadata is from the earlier chapters. Running native-image by hand works for a single class. Real projects have dependencies, test2 min readnative-image and know what a JVM heap, a garbage collector and JIT compilation do. It covers how a native image manages memory without a JVM and which settings you can change.4 min readnative-image, know what the JVM and its JIT compiler do, and have read the earlier chapters on the closed-world assumption and runtime memory. It compares a native executable with the same application on a regular JVM along four dimension3 min readnative-image (covered earlier in this tutorial). It also assumes you have used a basic multi-stage Dockerfile. Here you will decide how much of the C library your executable carries, and how to put it in a small container image.3 min readnative-image, and that you know what reachability metadata and the tracing agent do. Native Image failures fall into two groups: the build stops, or the build succeeds and the program misbehaves. Each group has a short list of usual cause2 min read