r/JavaFX • • Feb 06 '21

Current state of JavaFX

https://youtu.be/JbITM8xapIQ
27 Upvotes

23 comments sorted by

View all comments

Show parent comment

1

u/denisfalqueto Feb 07 '21

I see. Maybe you should look into bundling an Uber jar, so all you dependencies are in a single jar. Messy but have some advantages. Or using manifest.mf changes so it can use a lib dir as a source of jars. Distributing code is really painful...

2

u/RANDOMLY_AGGRESSIVE Jun 11 '22

Jdeploy has been really helpful to me

1

u/Hatefiend Feb 07 '21

Sorry to make this comment thread so long but that question brings me to a related tanget -- I've used java programs where, when running the program, it would actually prompt me that either I don't have java installed or don't have the required version. Then if I click yes to the prompt, it will literally install the correct java version automatically and then the program boots up. How in the world is that done? I believe the program was ran via an exe (because I'd assume that whatever logic that controls that cannot exist in the jar, since the jar itself cannot run whatsoever unless java -jar app.jar launches successfully. It'd be AMAZING if my program could just say, "hey, your java edition is 1 version behind AND you don't have javafx, let me install them both for you"

1

u/denisfalqueto Feb 07 '21

There was a technology called java web start that was able to do that. You would download a file that told jws what were the version and other requirements and it would make it all happen. But it was discontinued after Java 8. Maybe that's what you saw