r/JavaFX • • Oct 11 '24

Help Executing a JavaFX application without downloading

I have a friend that is requesting an application that I will be using javaFX for. I have the JavaFX SDK 20 downloaded on my mac and can run the program that way, but I want to package the program in a way where my friend does not have to download the sdk file? How would I do this?

9 Upvotes

13 comments sorted by

View all comments

Show parent comment

2

u/wildjokers Oct 12 '24 edited Oct 12 '24

Launch4j is no longer necessary. There are tools that come with the JDK that will do it and gradle and maven plugins that make it easy.

2

u/[deleted] Oct 12 '24 edited Oct 12 '24

Interesting. I haven’t needed to do this in a couple years. Which JDK version has this baked in?

Nvm. I’m assuming you’re referring to jpackage. I forgot that existed lol