Created
January 15, 2020 02:52
-
-
Save zendobk/d14fbda4b118c30e316ee3c2e4a78e2c to your computer and use it in GitHub Desktop.
Generate default JRE for OpenJDK 11
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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