How to Install JavaFX on Windows Subsystem for Linux

主宰稳场 提交于 2020-06-23 10:31:34

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!