r/JavaFX • u/shannah78 • May 03 '25
Tutorial Screencast publishing a JavaFX desktop app in a few minutes
This is a video version of the tutorial I posted last week, showing how to create a JavaFX desktop app from scratch, and publish it as native bundles using jDeploy. I take my time to explain a few things in this video, which is why it is 8 minutes, but you could probably do it all in under a minute, on your 2nd time through.
29
Upvotes
3
u/johnmc325 May 03 '25
Thanks for sharing this it looks interesting. When I get a chance I will try following your guide to publish one of my existing applications.
3
u/johnmc325 May 04 '25
Followed the video and deployed my application.
https://www.jdeploy.com/~softwarepulse_jwt_decoder is the download page.
It took me about 1 hour to work through everything, but that also included dusting off the Java project, as I had not touched it for over a year.
Things that caught me out were mainly around NPM. I was completely new to NPM, so I could have used more help from the video around this area.
Creating a free NPM account was easy.
I did not realise you needed to have Node.js installed. I'm not a big fan of js so try to avoid. I found I needed Node.js to log into NPM so that JDeploy would publish the application otherwise, I got an error.
The only other area that I struggled with was entering the NPM account into JDeploy. I entered the account name and then closed the window while I went to NPM to create a token. When I came back to JDeploy there was no option to open up the window. I had to close the project and reopen it to get the option to edit the account information.
I have done an update to the code and that worked like a charm.
I have only used the Windows option as that is all I had available at the time.
1
u/smm_h May 04 '25
this is fantastic thank you! does it target android/ios as well? how does the auto update work in other platforms?
1
u/taranion May 06 '25
It is great that updating an application is done that easily. What I am missing is a way to indicate to the user that the application just started has been updated - eventually with a version number or a pointer to release notes.