n00b1990
n00b1990

Reputation: 1249

How to construct an executable jar with JavaFX dependencies?

I am building an application with JavaFX and I work with maven. I want to be able to make a jar file for the end user with the JavaFX dependencies included, so that the end-user doesn't have to install JavaFX to run the excutable.

Can someone tell how to do this?

Upvotes: 0

Views: 356

Answers (2)

James_D
James_D

Reputation: 209359

Have a look at Daniel Zwolenski's blog

He shows how to build a Maven wrapper around the javafxpackager tool; this includes building "self-contained applications" that include the JRE (and JavaFX) as part of a native executable application.

Upvotes: 2

Aakash
Aakash

Reputation: 1900

You can use tools like JSmooth or Launch4j to create such executables. The jfxrt and other dependencies can be added in classpath in any of those tools.

Upvotes: 0

Related Questions