2019-10-18 20:03:53 +00:00
|
|
|
#!/bin/sh
|
|
|
|
# This script is used as a reference to generate a stripped-down OpenJ9 JRE for the server
|
|
|
|
rm -rf java/
|
2019-11-30 15:35:29 +00:00
|
|
|
wget https://github.com/AdoptOpenJDK/openjdk11-binaries/releases/download/jdk-11.0.5%2B10_openj9-0.17.0/OpenJDK11U-jdk_x64_linux_openj9_11.0.5_10_openj9-0.17.0.tar.gz
|
2019-10-18 20:03:53 +00:00
|
|
|
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/
|