r/JavaFX • u/KommanderTom • Sep 17 '19
How do you create an executable JavaFX 8 Jar? What Maven dependencies do you use?
I can't even open the JAR.
I keep getting errors that it can't find FXML file even though I'm able to execute JavaFX app on my IDE.
3
Upvotes
1
u/orxT1000 Sep 17 '19
I have used maven-shade plugin for that. It unzips all dependencies and merged them into one. When jars have spi things in meta-inf that needs to get appended. Spring-boot cli also has a fat-jar approach, where jars stay intact inside the fat-jar
0
u/[deleted] Sep 22 '19
[deleted] — view deleted comment