Skip to content

Instantly share code, notes, and snippets.

@zendobk
Created January 15, 2020 02:52
Show Gist options
  • Save zendobk/d14fbda4b118c30e316ee3c2e4a78e2c to your computer and use it in GitHub Desktop.
Save zendobk/d14fbda4b118c30e316ee3c2e4a78e2c to your computer and use it in GitHub Desktop.
Generate default JRE for OpenJDK 11
#!/bin/bash
set -eo pipefail
cd /usr/lib/jvm/java-11-openjdk-amd64
sudo ./bin/jlink --output ./jre --compress=2 --no-header-files --no-man-pages --module-path ./jmods --add-modules java.base,java.compiler,java.datatransfer,java.desktop,java.instrument,java.logging,java.management,java.management.rmi,java.naming,java.net.http,java.prefs,java.rmi,java.scripting,java.se,java.security.jgss,java.security.sasl,java.smartcardio,java.sql,java.sql.rowset,java.transaction.xa,java.xml,java.xml.crypto
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment