Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use JavaFX in jdk11?

I am a beginner programmer and now I want to start GUI applications in java.(as I previously worked on java too). I started reading some books on FX but its not compiling on JDK11 .. Do I need to use jdk8 or is there any way i can do it on jdk11 too?

like image 232
Faizan Ahmad Avatar asked Oct 21 '25 06:10

Faizan Ahmad


1 Answers

JavaFX has become unbundled from JDK11 (both Oracle's official JDK and OpenJDK). In order to use JavaFX with JDK11, you'll have to download the standalone JavaFX11 runtime.

like image 88
MarsAtomic Avatar answered Oct 23 '25 20:10

MarsAtomic



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!