I'm trying to compile and run a JavaFX program/project I found online to mess around and discover JavaFX since it's the first using it in my case, from my Terminal. JavaFX isn't included in the latest JDK, so I installed openjfx
That said, I tried to compile the program with this line :
javac -cp /usr/share/java/openjfx/jre/lib/ext/jfxrt.jar *java
Which worked, all the .class files are generated, but then I tried to run it using this line :
java -cp /usr/share/java/openjfx/jre/lib/ext/jfxrt.jar:. Game
This line gave me this error :
Error : Could not find or load main class Game
Caused by : java.lang.NoClassDefFoundError: tutorialfx/tutorial23/Game (wrong name: Game)
I tried many little things so far, nothing conclusive. I started thinking that I'd be able to run any JavaFX program with the latest JDKs, but it was not the case. So here I am !
I have the latest version of openjfx, what I'm trying to do is obviously to be able to run the program !
Thank you