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

爱⌒轻易说出口 提交于 2019-12-17 19:57:36

问题


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 ?


回答1:


The source for JavaFX 8 is available at:

http://hg.openjdk.java.net/openjfx/8/master/rt

JavaFX 8 is almost completely open source today.

Instructions for building JavaFX 8 with OpenJDK 8




回答2:


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.




回答3:


The OpenJFX wiki has a page on how to build JavaFX 8 from the source.




回答4:


These answers may also be useful if you're trying to get the JavaFX source code to appear in your IDE:

  • JavaFX source code not showing in IntelliJ idea
  • how to attach missing java JDK sources in Netbeans 7


来源:https://stackoverflow.com/questions/19045831/where-can-i-find-the-jdk-8-javafx-8-source-code

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