Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

JavaFX source code not showing

I downloaded the JavaFx source code from http://hg.openjdk.java.net/openjfx/2.2/master/rt/summary.

The name of the folder in the zip file is re-e71070b0e0c0.

I unzipped this and added the folder under Project Structure - Global Libraries in Idea, however it doesn't work. When I try to open a class it just shows field names and /* compiled code */. I couldn't find anything in the manual.

like image 842
JavaMonkey22 Avatar asked Nov 15 '12 22:11

JavaMonkey22


1 Answers

(Since this is one of the Google hits for "javafx source code", I'll dump this anwer here too):

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.

like image 80
stolsvik Avatar answered Sep 19 '22 17:09

stolsvik