问题
I'm trying to install JavaFX on WSL Ubuntu I just updated and upgraded all my packages and checked that OpenJDK is up to date. If I try to compile anything for JavaFX I get errors like this.
Below is my Java Version.
Any help would be great cause I'm not sure what I'm missing.
回答1:
You should install OpenJFX first
sudo apt install openjfx
openjdk-11 comes without javafx/openjfx by default.
回答2:
in our course at POLIMI we solved so:
https://github.com/ingconti/JavaFXWithImagesAndText/blob/master/ReadMeForWSL.md
by Michele Alziati and me.
来源:https://stackoverflow.com/questions/62043446/how-to-install-javafx-on-windows-subsystem-for-linux