Java FX in Ubuntu with JDK7 (FX path?)


In order to use Java FX in Netbeans I installed java jdk 7 by ppa. According to a Netbeans instruction I tried to enable JavaFX in the Java Platforms in Netbeans. The problem is that I have to enter the paths to FX:

Enabling JavaFX in Netbeans

Note: This image is only an example from the instruction, my platform is "JDK 1.7".

Where is JavaFX located when installed with jdk7 by ppa? (I checked the java version and it is 1.7.0_03so FX should be included)

3/13/2012 7:25:17 PM

Accepted Answer

I don't think JavaFX is co-bundled in the version of Java which you installed.

I believe you (currently) need to:

  1. Get the JavaFX Linux developer preview from Oracle separately to the Linux distribution of the JDK.
  2. Follow the installation instructions in the official JavaFX preview for Linux release notes.
  3. Supplement that with information from weiqi gao's blog if you need help on getting the JavaFX supported media codecs working under Linux.
  4. Follow the instructions from NetBeans to setup a JavaFX platform under NetBeans.
3/14/2012 12:33:27 AM

Its now co-bundled with JDK 7 for Windows, Mac and Linux .. see:

basically you would need to enable JavaFX .. just add the same JDK manually and check if it has JAVAFX SDK .. if not, then install JDK7 ( mine is JDK1.7.0_22 ) , follow this how to install JDK on ubuntu 12.10 :

and then just select that JDK via Java platforms and enable JavaFX .. and its gonna work

my ubuntu is 12.10 64-bit

good luck

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