I follow the Jigsaw quickstart here. I successfully ran the jlink
command given:
jlink --module-path $JAVA_HOME/jmods:mlib --add-modules com.greetings --output greetingsapp
That produces a "runtime image" which is an exploded directory structure that looks like:
~ tree -d greetingsapp
greetingsapp
├── bin
├── conf
│ └── security
│ └── policy
│ ├── limited
│ └── unlimited
├── include
│ └── darwin
├── legal
│ └── java.base
└── lib
├── jli
├── security
└── server
How do I run this? I was expecting a binary executable, not an exploded directory tree.
The bin
directory has a java
and a keytool
. I don't see any .jar files or .class files to run via the bundled java
executable.