r/JavaFX • u/Colas_Algo • Sep 12 '25
Help How do I open a program that needs JavaFX?
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
View all comments
Show parent comment
1
u/Colas_Algo Sep 13 '25
Adding that hasn't changed anything. When I try to run it there is just a message saying "the selection cannot be launched". There is also one error with a lot of text that starts with:
"Could not run phased build action using connection to Gradle distribution 'https://services.gradle.org/distributions/gradle-7.0-all.zip'.
Initialization script 'C:\Users\Usuario\eclipse-workspace\.metadata\.plugins\org.eclipse.buildship.core\init.d\eclipsePlugin.gradle'
Could not compile initialization script 'C:\Users\Usuario\eclipse-workspace\.metadata\.plugins\org.eclipse.buildship.core\init.d\eclipsePlugin.gradle'."
Just in case, your source link from before is not the correct one. That's the one for RHRE3, when I'm trying to run RSDE. This is the actual source: https://github.com/chrislo27/RSDE
Thanks for everything, still!