Building JavaFX From Scratch (Linux / Mac)

Building JavaFX From Scratch (Linux / Mac)

Mac / Linux Slides for Javaland 2019 session (Dr. Michael PAUS)


Markus KARG

March 19, 2019


  1. Building JavaFX From Scratch presented by Michael Paus & Markus

    Karg git clone ./gradlew clean build
  2. $ java -version $ cd […]/JavaLand/2019/JavaFX-CommunityEvent/Build $ git clone

    $ cd openjdk-jfx/ $ bash ./gradlew clean build Preparation: Default java musst be Java 11.0.2, 12 or 13. On a Mac Xcode (accept license!) must be installed. We also need the SDK of the latest JavaFX EA build. Finish: Copy missing libraries from latest EA build to openjdk-jfx/build/sdk/lib/. Use new SDK in some JavaFX-Project.
  3. • Print Java and JavaFX versions.
 log.debug("java.runtime.version: {}",
 System.getProperty("java.runtime.version", "?"));

    log.debug("javafx.version: {}“,
 System.getProperty("javafx.version", "?")); • Setup example program to use new JavaFX-SDK. Demo
  4. Example bugfix: openjdk-jfx/modules/javafx.base/src/main/java/com/sun/javafx/binding/ Demo

  5. Further common build variants bash ./gradlew all test bash ./gradlew

    -PFULL_TEST=true -PUSE_ROBOT=true all test bash ./gradlew -PCOMPILE_WEBKIT=true -PCOMPILE_MEDIA=true build
  6. Collaboration Process • Start page • Contributing

    • Building