Skip to content

beryx-gist/badass-jlink-example-log4j2-javafx

Repository files navigation

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.

💡 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).

About

Using the Badass JLink Plugin with log4j2 and JavaFX

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages