Reputation: 1249
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
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
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