Where can I download the JavaFX 2.2 source code?

user813853 picture user813853 · Nov 25, 2012 · Viewed 14.4k times · Source

I need to link in Netbeans 7.2.1 to the source of JavaFX 2.2.3, I've looked on the Oracle web site ... but I didn't find it ! any help is a welcome plz

Answer

jewelsea picture jewelsea · Nov 25, 2012

JavaFX 2.2 is only partially open source.
You can download the parts which are open from the zip link at:

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

JavaFX 8

JavaFX 8 is completely open source today.

Source for building JavaFX 8 (and the SceneBuilder design tool) is available at:

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

Source code for later versions (including Java 8 updates), is in the source code forest, an overview of which is at:

http://hg.openjdk.java.net/openjfx

If you don't need to build JavaFX 8 and just want the runtime sources in a zip, those are in the javafx-src.zip file from the JDK 8 download.

On OS X, the javafx-src.zip file is located at:

/Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/javafx-src.zip

IDE Setup

Instructions for configuring Idea to understand the source are here:

JavaFX source code not showing

For NetBeans, you could try:

How to attach missing java JDK sources in Netbeans 7