Download and install JavaFX for Eclipse


Question

I'm an experienced (Java, Eclipse & Maven) developer, and have used a couple of frameworks thus far. Every time I'm trying to start with something new, it seems like there are about a zillion configuration possible for downloading and installing it.

I've looked here for instructions, and all the near pages, but they seem out dated, the Eclipse plugin path is invalid, and when I install the latest version I've found no the site (2.0.2), it says that I have a newer version installed.

Also, the Maven setup in most posts I've read seems obscure.

I'm using:

  • Windows 7
  • Eclipse x64 Indigo
  • JDK x64 1.6.0.24
  • Maven 3.0.3

And I don't recall installing the JavaFX.

What an I missing? Where can I read about the setup in order to start working with this framework?

1
10
2/1/2013 12:58:38 PM

Accepted Answer

JavaFX gets installed if you install the latest JDK 7 from Oracle (co-bundled).

You can find the Eclipse plugin here:

http://efxclipse.org/

If your're interested in Maven builds: I've recently released an initial version of Drombler FX, a modular RCP for JavaFX based on OSGi and Maven (POM-first):

http://puces-blog.blogspot.ch/2012/12/drombler-fx-building-modular-javafx.html

http://wiki.drombler.org/GettingStarted

14
2/1/2013 1:14:19 PM

I did tried efxclipse but it was not enough for me. I have also tried to give the path of javafx jar file to efxclipse

Window->Prefrences->javafx->"The path to javafx jar which is jfxrt.jar"

. But nothing worked for me I don't know what was going wrong.

Then I just add the jfxrt.jar file to my Library and everything worked fine :-

 1. Right click your JRE System Library
 2. Build Path
 3. Configure Build Path
 4. Add External Jars
 5. "The path to jfxrt.jar"

You can download jfxrt.jar file from this link.

Or

If you have already downloaded the latest oracle JAVA JDK you will find in this path

Extracted_oracle_jdk_folder/jre/lib/ext/jfxrt.jar

That's it everything should work fine.


Licensed under: CC-BY-SA with attribution
Not affiliated with: Stack Overflow
Icon