Skip to content

SupernautApp/supernaut-fx-sample-maven

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

83 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Supernaut.FX Sample Maven Project

Build Status Build Status

Overview

A sample/starter project that uses the Maven build system. It uses the JavaFX Plugin to build and/or run a JavaFX JAR/app and the GluonFX Plugin to build and run a GraalVM native-image.

NOTE

Building a native package with jpackage is not yet supported with Maven. (See Issue #2.) It is supported with Gradle, however. See the Supernaut.FX Sample Gradle Project for an example. Building a jlink image however, is supported.

Cloning from Github

  1. git clone [email protected]:SupernautApp/supernaut-fx-sample-maven.git

  2. cd supernaut-fx-sample-maven

Building with the JDK

Setup

  1. Install JDK 11 or later. (JDK 17 is recommended)

  2. Install Maven. (Maven 3.8.1 or later is recommended)

Build Instructions

To compile and test:

  • mvn verify

or, to run the app:

  • mvn javafx:run

To run the `jlink`ed app:

  • ./target/image/bin/hellofx

Building with GraalVM and Gluon

Setup

  1. Install Graal VM java17 version 22.0.0.2 or later (Latest GraalVM JDK 17)

  2. gu install native-image

  3. Set GRAALVM_HOME environment variable

  4. Install Maven. (Maven 3.8.1 or later is recommended)

If you are building a GraalVM native image with GluonFX you may need to install additional software (depending upon your platform) see the Gluon Documentation for info.

Building a Native Image

To build:

  • mvn gluonfx:build

or, to run:

  • mvn gluonfx:build gluonfx:nativerun

or, to build a packaged application:

  • mvn -Pdesktop gluonfx:build gluonfx:package

The packaged application will be in target/gluonfx/<platform>/

About

SupernautApp FX Hello sample Maven project

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages