☀️

Hi, I am Miao.

Solution for Java18 missing javafx

Solution for Java18 missing javafx

Java8 comes with javafx

Open the project in IDEA, File–>Project structure–>SDKs–>18–>Classpath–>+ –> add D:\Java\JDK8\jre\lib\ext\jfxrt.jar

! image-20220808154904152

over

The above methods may not work, the most reliable way is to directly replace the SDK with JDK8

p.s. All above is based on this answer from StackOverflow

— Dec 30, 2022

Made with ❤ and Hexo.js