Loading topic
javac and java, and that you know what a JAR file and the classpath are. It explains the Java Platform Module System (JPMS) well enough to understand what jlink does later in the tutorial. It does not cover every module feature.6 min readjavac and java, and that you know what a JAR and the classpath are. It covers the file that tells the module system, and later jlink, what your code needs.5 min readjavac and java, and that you know a module declares its dependencies in module-info.java. The previous chapters covered the module system and requires. Here you will learn what the JDK itself is made of, because jlink can only keep or 5 min readjavac and java, and that you know what a module-info.java file declares. Earlier chapters covered the module descriptor and the JDK's module names. Here we look at where those modules come from when jlink builds an image.5 min readjavac and java, and that you know what a JAR and the classpath are. It also assumes you have read the previous chapters on module-info.java and the JDK's modules. Here you will learn how to ask the JDK which of its modules your ap5 min readjlink command does. It assumes you can compile and run Java programs with javac and java, and that you know what a JAR and the classpath are. It also assumes you have read the earlier chapte5 min readjlink command from the previous chapter and have the build/runtime image it produced. You should also know what a module descriptor is. Here you will look at what jlink wrote to disk, what each part is for, and which parts you can safely ignore.5 min readjlink as in the previous chapters. It also assumes you know what a module descriptor is and what --add-modules does. You will see how --launcher creates a command in the image's bin directory, what that command contains, and what can go wrong.5 min readjlink --module-path ... --add-modules ... --output .... It also assumes you know how jdeps reports the modules your application needs. Here you will trim the image in three ways: by removing files, by shrinking the files that remain, and b5 min readbuild/runtime image from the previous chapters and that you know what java.base, jdeps, and the module path are. Here you will verify an image in layers, from cheapest check to most realistic, and learn to read the failures each layer catches.5 min readmodule-info.java, run jdeps, and build a basic image with jlink. It covers why some modules never reach an image even though the application works on a full JDK, and how to fix that.4 min readjlink on it, as shown in the earlier chapters. Real projects rarely stay that tidy. They depend on JARs that have no module-info.class, such as older libraries, internal utilities, and vendor SDKs. jlink is strict about those JAR4 min readmodule-info.java, and run jdeps. It covers how to produce a runtime image for an operating system or CPU architecture other than the one you build on.5 min readjlink and verify it with java --list-modules. It also assumes basic Docker knowledge (images, stages, COPY). Here you move the build into a container build and a CI pipeline. You will learn why the image tends to fit that environm5 min readjdeps, and create an image with jlink, as covered in the earlier chapters. It looks at what a custom runtime costs you and where it breaks, so you can decide when it is worth using.5 min read