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.

export JIGSAW_HOME="path_to_top_of_JDK9"
export JFX_BUILD="path_to_top_of_your_repo"
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.h...@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)

Reply via email to