#!/bin/sh # This script is used as a reference to generate a stripped-down OpenJ9 JRE for the server rm -rf java/ wget https://github.com/AdoptOpenJDK/openjdk11-binaries/releases/download/jdk11u-2019-10-12-12-08/OpenJDK11U-jdk_x64_linux_openj9_2019-10-12-12-08.tar.gz tar -zxvf OpenJDK* rm OpenJDK* mv jdk* jdk/ jdk/bin/jlink --no-header-files --no-man-pages --compress=2 --strip-debug \ --exclude-files=**java_*.properties,**jrunscript,**keytool,**legal/** \ --add-modules \ java.desktop,java.logging,java.management,java.naming,java.net.http,java.scripting,java.sql,jdk.crypto.ec,jdk.unsupported,jdk.zipfs,openj9.sharedclasses \ --output java rm -rf jdk/