Where can I find the JDK 8/JavaFX 8 source code?

Lionel Père picture Lionel Père · Sep 27, 2013 · Viewed 25.2k times · Source

I would like to override the Implementation of FXMLLoader and recompile the JDK 8.

Where can I find the source code of the JDK8 / JavaFX 8 ?

Answer

stolsvik picture stolsvik · Apr 13, 2014

Quoting from this answer: For Java 8, the source of the public parts of JavaFX are actually laying right along in the JDK installation as a sibling of src.zip: javafx-src.zip - on the root of your normal JDK Java 8 installation.

Eclipse doesn't by default link them up when you add the JRE (or it finds it itself) - obviously a bug - so you'll have to do that yourself, by hitting Preferences -> Installed JREs. Find your JDK 8, hit Edit button. On the list JRE system libraries, expand the jfxrt.jar node, and link in the javafx-src.zip file.