Skip to content

Instantly share code, notes, and snippets.

@finalfantasia
Last active July 10, 2019 18:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save finalfantasia/1a9235e8833d34082ac36534d32d3567 to your computer and use it in GitHub Desktop.
Save finalfantasia/1a9235e8833d34082ac36534d32d3567 to your computer and use it in GitHub Desktop.
JavaFX and OpenJDK 1.8

Problem: OpenJDK 1.8 builds don't include JavaFX libraries.

Workaround: (Assuming the platform is GNU/Linux.)

Copy the JavaFX runtime JAR and other related files included in a ZuluFX build (https://www.azul.com/downloads/zulu/zulufx/) to the following locations in the home directory of the OpenJDK 1.8 build:

cp $ZULUFX_HOME/lib/javafx.properties $OPENJDK_HOME/lib/
cp $ZULUFX_HOME/lib/amd64/libprism_*  $OPENJDK_HOME/lib/amd64/
cp $ZULUFX_HOME/lib/amd64/libglass.so $OPENJDK_HOME/lib/amd64/
cp $ZULUFX_HOME/lib/amd64/libjavafx_* $OPENJDK_HOME/lib/amd64/
cp $ZULUFX_HOME/lib/ext/jfxrt.jar     $OPENJDK_HOME/lib/ext/

And ensure the GTK+ 2.18 or higher is also installed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment