0

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?

n00b1990
  • 1,189
  • 5
  • 17
  • 25

2 Answers2

2

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.

James_D
  • 201,275
  • 16
  • 291
  • 322
0

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.

Aakash
  • 1,860
  • 19
  • 30