JFX - Running with Jigsaw in development
David.Hill at Oracle.com
Thu May 5 13:42:39 UTC 2016
We have a new trick in the FX repo to help with running FX apps backed by a Jigsaw enabled build.
If you build FX with JIGSAW_HOME set to a JDK 9 build later than build 110, then the Jigsaw modules will be generated. These modules can be used with -Xpatch to override the modules in JDK9. Unfortunately each module must be listed separately, and we need a -Djava.library.path to find the built native libraries - a very verbose command line...
But... recently added to the build, a new file is now created: build/xpatch.args that has all of this for you.
alias javafx='$JIGSAW_HOME/bin/java @$JFX_BUILD/build/xpatch.args'
This alias uses the @argfile mechanism to include all that Xpatch/java.library.path verbosity to create a single command to run FX backed by your recently built binaries.
Get your Jigsaw enabled JDK9 preview here: https://jdk9.java.net/download/
David Hill<David.Hill at Oracle.com>
Java Embedded Development
"A man's feet should be planted in his country, but his eyes should survey the world."
-- George Santayana (1863 - 1952)
More information about the openjfx-dev