Dan
Dan

Reputation: 324

Is JavaFX supported in Openjdk?

Does OpenJDK 8 includes JavaFX support like Oracle Java does? I know there is package (at least for Ubuntu) called OpenJFX, but I'm not sure why that's not included in OpenJDK 8

Upvotes: 0

Views: 7240

Answers (3)

Stephen C
Stephen C

Reputation: 718826

The word "supported" means different things to different people.

Here is the official JavaFX Supported Configurations page which describes the various platforms on which JavaFX2 is "certified". The page makes no mention of OpenJDK, so Oracle may take the position that JavaFX is "not certified" for OpenJDK.

On the other hand JavaFX is part of the codebase managed by the OpenJDK project.

In practice, I think that this means that JavaFX works on OpenJDK ... except for a couple cases where JavaFX requires Java functionality that is not in OpenJDK. See this Q&A for a more detailed explanation.


I was wondering if I can develop JavaFX applications, with Netbeans, on OpenJDK 8?

Different question. In this case, the answer is uncategorical. Yes you can. The NetBeans 8 release notes say that JavaFX is supported, and do not specify that Oracle Java is required, or even preferred over OpenJDK Java.

Upvotes: 2

Surlaw Ehtmai
Surlaw Ehtmai

Reputation: 11

To make this more clear, OpenJDK does not include JavaFX as of July 2016. Their web page has instructions, which I have not tried, for building OpenJDK with JFX from source, which seems a little self-abusive. I have very recently started using Oracle's JDK instead when I need JavaFX in Fedora. I remember reading a warning somewhere on the Fedora Project wiki that the parallel installs could cause problems, but I am betting that a version that is installed carefully using good path hygiene will be OK. No problems yet.

Upvotes: 1

m0skit0
m0skit0

Reputation: 25873

Yes, you can. Java is platform-agnostic. By the way you can also use Oracle JDK on Linux.

Upvotes: 1

Related Questions