Building JavaFX From Scratch (Linux / Mac)

Building JavaFX From Scratch (Linux / Mac)

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

013a3a74142a4d2995ac69b07fc26e4c?s=128

Markus KARG

March 19, 2019
Tweet

Transcript

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

    Karg git clone https://github.com/javafxports/openjdk-jfx.git ./gradlew clean build
  2. $ java -version $ cd […]/JavaLand/2019/JavaFX-CommunityEvent/Build $ git clone https://github.com/javafxports/openjdk-jfx.git

    $ 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/SelectBinding.java 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
 https://github.com/javafxports/openjdk-jfx • Contributing
 https://github.com/javafxports/openjdk-jfx/blob/develop/.github/ CONTRIBUTING.md

    • Building
 https://wiki.openjdk.java.net/display/OpenJFX/Building+OpenJFX