Skip to content

Instantly share code, notes, and snippets.

@itang
Created February 26, 2016 10:19
Show Gist options
  • Save itang/e515259862ea75c79d4e to your computer and use it in GitHub Desktop.
Save itang/e515259862ea75c79d4e to your computer and use it in GitHub Desktop.
create jdk9 runtime image
#!/bin/bash
## hacked for https://github.com/AdoptOpenJDK/jdk9-jigsaw/blob/master/09_JLink/link.sh
set -eu
echo "Removing any existing executable directory"
rm -rf executable
# mkdir executable
echo
echo "Create an executable version of the com.greetings module"
jlink --strip-debug --compress=2 --modulepath $JAVA_HOME/jmods:mlib --addmods com.greetings --output executable
tree executable
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment