Skip to content
A Rust application with JavaFX UI
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
gh-images
java
rust
.gitignore
LICENSE
README.md

README.md

j4rs-showcase

Showcase for a Rust application that creates and uses a JavaFX User Interface.

Prerequisites

  • Java 11 is installed
  • Maven is installed
  • Rust is installed

Steps for the building and executing

  1. Build with

    cargo build --manifest-path=rust/Cargo.toml

    During building, you should get a warning like:

    warning: Please export the env var "FX_UI_JAR_PATH" with the value "/home/myuser/git/j4rs-showcase/java/target/fx-ui-0.1.0.jar" before running the application

  2. Export the FX_UI_JAR_PATH variable

    For linux:

    export FX_UI_JAR_PATH=/home/myuser/git/j4rs-showcase/java/target/fx-ui-0.1.0.jar
  3. Execute with

    cargo run --manifest-path=rust/Cargo.toml

Execution output

fxui.png

console.png

You can’t perform that action at this time.