Home

Awesome

PRs Welcome License Build Status

Badass JLink Plugin Example: log4j2 and JavaFX

A small JavaFX application using log4j2 that shows how to use the Badass JLink Plugin.

Usage

Running with gradle:

./gradlew run

A window containing the text HelloFX should appear on the screen and the following text should be printed on the console:

[JavaFX Application Thread] INFO  org.openjfx.HelloFX - hellofx!

Creating and executing a custom runtime image:

./gradlew jlink
cd build/image/bin
./helloFX

A window containing the text HelloFX should appear on the screen and the following text should be printed on the console:

[JavaFX Application Thread] INFO  org.openjfx.HelloFX - hellofx!

Creating installable packages

./gradlew jpackage

The above command will generate the platform-specific installers in the build/jpackage directory.

:bulb: You can check the artifacts produced by the GitHub actions used to build this project and download an application package for your platform (such as from here).