title: JRE with smallest possible file size
body: <p>I am currently working on a game engine for Java, with compile targets for windows, macos, linux, android and the web. Now I have a question about deploying to windows, macos and linux.</p>
  <p>My original plan was to use <a href="https://github.com/libgdx/packr" rel="nofollow noreferrer">packr</a> (An application that takes a JAR-file and any JRE and creates a binary) and a copy of the <em>Amazon Corretto JRE</em> to create the binaries. My problem with this is the file size: A simple &quot;Hello, World&quot; on Windows already requires ~100MB disk space...</p>
  <p>I would really like to include the JRE inside the application (so no wrapper that downloads the JRE if needed). Is there maybe some JRE out there that is optimized for smallest code size or maybe some way to generate one according to my dependencies?</p>