How to install Javafx?

Asked

Viewed 1,210 times

4

I am a Linux user (Fedora Workstation 26) and I am trying to develop a Javafx application using Netbeans as IDE, the problem is that I did not find the Javafx SDK download for linux, and the official download link on the Oracle page has been disabled because it says that and Javafx has been implemented in the latest Jdks and Jres.

I would like to know from which version of JDK and JRE already comes with Javafx?

  • Javafx2 is already a member of JDK 7, if you installed it, you would already be able to program in this API. Now if you want some facility to build screens, you need some canvas Uilder.

  • The documentation says that from JDK 7u6 the Javafx would already be included.

2 answers

1

javafx is included with jdk7, but it is not in the classpath. To use it you need to add the library manually to your project.

Starting with jdk8, javafx is already configured in classpath.

However, I don’t know if all linux distros do the same, but in Ubuntu, just installing openjdk is not enough. You also need to install openjfx.

1

Browser other questions tagged

You are not signed in. Login or sign up in order to post.