building javafx from scratch · •print java and javafx versions....
TRANSCRIPT
![Page 1: Building JavaFX From Scratch · •Print Java and JavaFX versions. log.debug("java.runtime.version: {}", System.getProperty("java.runtime.version", "?")); log.debug("javafx.version:](https://reader033.vdocuments.net/reader033/viewer/2022042923/5f70e56ef7297f6c9105ccca/html5/thumbnails/1.jpg)
Building JavaFX From Scratchpresented by Michael Paus & Markus Karg
git clone https://github.com/javafxports/openjdk-jfx.git
./gradlew clean build
![Page 2: Building JavaFX From Scratch · •Print Java and JavaFX versions. log.debug("java.runtime.version: {}", System.getProperty("java.runtime.version", "?")); log.debug("javafx.version:](https://reader033.vdocuments.net/reader033/viewer/2022042923/5f70e56ef7297f6c9105ccca/html5/thumbnails/2.jpg)
$ 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.
![Page 3: Building JavaFX From Scratch · •Print Java and JavaFX versions. log.debug("java.runtime.version: {}", System.getProperty("java.runtime.version", "?")); log.debug("javafx.version:](https://reader033.vdocuments.net/reader033/viewer/2022042923/5f70e56ef7297f6c9105ccca/html5/thumbnails/3.jpg)
• 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
![Page 4: Building JavaFX From Scratch · •Print Java and JavaFX versions. log.debug("java.runtime.version: {}", System.getProperty("java.runtime.version", "?")); log.debug("javafx.version:](https://reader033.vdocuments.net/reader033/viewer/2022042923/5f70e56ef7297f6c9105ccca/html5/thumbnails/4.jpg)
Example bugfix: openjdk-jfx/modules/javafx.base/src/main/java/com/sun/javafx/binding/SelectBinding.java
Demo
![Page 5: Building JavaFX From Scratch · •Print Java and JavaFX versions. log.debug("java.runtime.version: {}", System.getProperty("java.runtime.version", "?")); log.debug("javafx.version:](https://reader033.vdocuments.net/reader033/viewer/2022042923/5f70e56ef7297f6c9105ccca/html5/thumbnails/5.jpg)
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
![Page 6: Building JavaFX From Scratch · •Print Java and JavaFX versions. log.debug("java.runtime.version: {}", System.getProperty("java.runtime.version", "?")); log.debug("javafx.version:](https://reader033.vdocuments.net/reader033/viewer/2022042923/5f70e56ef7297f6c9105ccca/html5/thumbnails/6.jpg)
Collaboration Process
• Start pagehttps://github.com/javafxports/openjdk-jfx
• Contributinghttps://github.com/javafxports/openjdk-jfx/blob/develop/.github/CONTRIBUTING.md
• Buildinghttps://wiki.openjdk.java.net/display/OpenJFX/Building+OpenJFX