2

I have setup JavaFX Project in eclipse, now I want to see proper code with javadocs for certain classes in javafx. Where to download that source jar for this platform ?

Kara
  • 6,115
  • 16
  • 50
  • 57
Dhruv
  • 10,291
  • 18
  • 77
  • 126

1 Answers1

3

JDK8 ships with javafx-src.zip in it's root directory.

For more detail see the related answer to JavaFX source code not showing.

I don't use Eclipse, but I'm guessing if you use Java 8 with a recent version of e(fx)clipse, it will include simple keystoke navigation to JavaFX docs and sources from within the editor. If not, you could add a feature request for this against the e(fx)clipse project and in the meantime configure your JavaFX Eclipse projects manually to be aware of JavaFX docs and source (like you can currently do in Idea).

Community
  • 1
  • 1
jewelsea
  • 150,031
  • 14
  • 366
  • 406
  • This is correct e(fx)clipse nightly know about this location. See http://tomsondev.bestsolution.at/2013/10/17/efxclipse-nightly-and-jdk8b111/ – tomsontom Nov 12 '13 at 21:49
  • But jdk 8 is still in beta version I guess, don't we have source jar for javafx in java7_update45 ? – Dhruv Nov 13 '13 at 01:47
  • @dhroove no, JavaFX for Java 7 is mostly closed source, only JavaFX for Java 8 is completely open source. – jewelsea Nov 13 '13 at 04:38
  • jewelsea is right most parts of FX2 are closed source. the part that is opensourced is available in the mercurial repo, you could clone it, export it as a zip-file and attach it to your classpath – tomsontom Nov 13 '13 at 08:32