Building your own JDK in 10 steps
summary
Steps show how to clone OpenJDK Mercurial branches on an Ubuntu VM, install hg, run configure and use make to run make images and produce a real JDK image. Each branch downloads about 2.5GB per branch and produces roughly 6–6.5GB output, so expect around 20–30 minutes per build and tens of gigabytes for multiple branches. The produced build runs, supports Amber preview features with --enable-preview, and compiles records that generate equals/toString and enforce constructor validation.
AI-written summary · about
chapters (13)
- 0:00Intro
- 0:37Why build JDK
- 1:35Nonexisting JDK
- 6:00How it works
- 8:31Installing mercurial
- 9:17Choosing a branch
- 10:45Downloading source code
- 11:49Finding your branch
- 13:31Running configure
- 15:40Running compile
- 16:17Make images
- 19:56Demo
- 26:30Wrapping up
related talks
01h 38mAdoptOpenJDK: Lessons Learned from the New Build Farm for Java Itself
51mMoving Java Forward Faster
25mCommit to Excellence - Java in Containers
17mEncouragement and disappointment as you building a binary distribution of OpenJDK
53mApproaching the JDK 25 LTS release through real-world migration
34mAdoptOpenJDK: Ensuring Free Java for the Community
47m9 Lifes of JAVA 9
49mDocker Who. Small Containers Through Time and Space
