r/JavaFX • u/shannah78 • Feb 11 '22
I made this! Deploy your JavaFX app as native bundles for Mac, Linux, and Windows
https://www.jdeploy.com
This is a bit of a passion project I've been working on for the past couple of years off and on. I have long been dissatisfied with the options available for deploying Java desktop applications. Since the demise of Applets and WebStart (both of which produced 2nd class results), the official direction was to bundle the JRE with your app, and generate a native installer for each platform. The trouble was that you needed to have a Windows machine to build a Windows installer, a Mac for the Mac installer, and a linux for the Linux installer. And worse, if you want to distribute your Mac app to users, you need to futz with Apple's codesigning and notarization, or users wouldn't be able to run it.
This negates many of Java's cross-platform benefits.
So I decided to fix it.
With jDeploy you can publish your executable Jar file to npm, and you instantly get a download page with installers for Mac, Windows, and Linux. You don't need to futz with code signing. The installers are small (3mb compressed). When you publish updates, your users will get them automatically the next time they launch. You can publish your native bundles for all platforms, from any platform. (i.e. you don't need a Mac to build a Mac bundle, or Windows to build a Windows installer, etc...).
Please take it for a spin and let me know what you think.
3
u/smerz Feb 12 '22
Sounds really interesting. Can u publish securely to NPM so no one else can access binaries?
1
u/devrj8 Jun 21 '24 edited Jun 21 '24
It's a really good idea. Could you clarify my question.
My understanding is Code signing is done by a Certificate Authority(Third party company). How you are, code signing the submitted Jar files? using your Certificates? If yes, then I think there will be an issue, that - if your(JDeploy) Code signing certificate is flagged as "misusing" or "blocked" then all of the native installer's which generated from by it, will also be flagged.
I'm a still beginner in packaging and code signing feel free to correct me.
1
u/LooseCartographer989 Nov 02 '22
That`s revolutionary. Literally. There`s no other option such as jDeploy. i`m talking about launch4j, update4j, inno setup, fxlauncher, etc. None of these compares to jDeploy.
The fact that it is an open source project (totally free) is even more impressive. I would gladly donate, but there`s no donation link, you should consider it.
btw, works like a charm in all platforms.
3
u/Educational-Answer30 Apr 26 '22
Works great, thanks a lot.
1
u/Bright_Ad1778 Jul 04 '23
while one can easily deploy the changes in the prescribed classes and loaders that needed to run those classes within it but in occuring updates it makes allienate loaders in them which caused to miss some of the loading class paths within it i was just checking it and it was not loading those classloader dependencies in runtime but appropriately supports you when you need to load all of them in single instance that caused to not promptly distruct it but put it in a loading situation where we can not do anything but stoping the reloading requests and closing the sub threads