user905686
user905686

Reputation: 4634

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)

Upvotes: 1

Views: 3702

Answers (2)

Maher Abuthraa
Maher Abuthraa

Reputation: 17813

Its now co-bundled with JDK 7 for Windows, Mac and Linux .. see: http://www.oracle.com/technetwork/java/javafx/downloads/index.html

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 : http://www.vikramtakkar.com/2013/02/how-to-install-oracle-jdk-7-to-ubuntu.html

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

Upvotes: 1

jewelsea
jewelsea

Reputation: 159291

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.

Upvotes: 5

Related Questions