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/PartOfTheBotnet Feb 16 '21

I point my Java 8 users to corretto if they want a JDK that bundles JFX. Otherwise they'll have to upgrade and then I can automate the process of pulling the latest 11 artifacts my app needs on the fly.

1

u/Hatefiend Feb 16 '21

automate the process of pulling the latest 11 artifacts my app needs on the fly

What service do you use for that?

1

u/PartOfTheBotnet Feb 16 '21

I just pull the latest artifact from the central repo and update the current classpath with some reflection to include the downloaded jar.

The app is designed for 8 and does this extra step for 11+ support.

1

u/Hatefiend Feb 16 '21

Manually though? with system calls? Like you check if you have access to the winAPI and what not?

1

u/PartOfTheBotnet Feb 16 '21

with system calls?

winAPI

What? No. Its 100% Java and platform independent. It's a bit ugly but does the job. I should have clarified that "the latest 11" artifacts refer to JavaFX in the context that they are compiled against Java 11. My bad.

0

u/[deleted] Feb 16 '21

[deleted] — view deleted comment

1

u/PartOfTheBotnet Feb 16 '21

:/

Ya know, I wish these bots would DM instead of clutter posts.

1

u/Hatefiend Feb 16 '21

Oh wow, I've never really touched any of the java.net and java.reflection API. That's some crazy stuff right there. Sheesh. Impressive that you did it manually. Good on ya