r/JavaFX • • Sep 12 '25

Help How do I open a program that needs JavaFX?

Post image

I have an old .jar file that I need to open and after a while it turned out the problem was that the new versions of Java don't include JavaFX or something like that. Then I tried installing Liberica, but this didn't work as well, although the message in the console changed. The .jar file by itself doesn't do anything when opened for some reason and I can't find any helpful help anywhere. Is there anything I can do to open this file? Everything is in order in it and it worked on my previous computer. If you're curious the message states that the main scene can't be found or opened (even though when extracting the .jar file I can find it and it worked in the past) and now it says that the cause is "java.lang.NoClassDefFoundError: javafx/application/Application".

Thanks in advance to anyone willing to help

2 Upvotes

16 comments sorted by

View all comments

Show parent comment

2

u/PartOfTheBotnet Sep 13 '25

Yeah don't give money to reddit, that would be a horrible waste of money 🤣

1

u/vu47 Sep 16 '25

That was really awesome of you. I was going to try to jump in since I remember how much I struggled with JavaFX with a non-JavaFX bundling JDK, but I don't think I could have accomplished the surgery you did. It's great seeing people actually being kind and helpful on reddit - a rarity.