Paul Erlenmeyer
Paul Erlenmeyer

Reputation: 521

JavaFX is missing in Java OpenJDK

I want to make an application that uses a JavaFX GUI. I've read in a Stack Overflow post that the packages are supposed to be integrated in the OpenJDK (JavaFX and OpenJDK). So I've set up my OpenJDK 13 (jdk13 download page) and can't find the packages that I need to import. For example: I can't find the javafx.application.Application class.

Where is it located? Do I need to download something else?

Edit:

It's strange that I have to prove that the link in the comments doesn't fit this problem, when the people who marked this question as a duplicate clearly didn't read that post at all. Furthermore I myself posted this very link in my question. The question provided in the link asks whether JavaFX support is still bad for OpenJDK and if there are Linux distributions that offer JavaFX in OpenJDK. The accepted answer in that question just compares the two versions of JavaFX in JDK and OpenJDK - an expected answer to the question.

I in my question explain specifically what I expected, because I used JavaFX with normal JDK before. Since this is not the case with OpenJDK, I ask how to set it up properly. So please, if you mark something as duplicate to get your reputaiton - show me exactly where the answer is and don't post a lazy link.

I myself found the answer already and would post it, if this post gets unlocked ...

Upvotes: 1

Views: 3617

Answers (1)

Axel
Axel

Reputation: 14169

JavaFX is not part of OpenJDK anymore. There exist some versions that integrate JavaFX (i.e. Liberica). Or you can reference the OpenJFX builds at Mavencentral in your build script.

Upvotes: 4

Related Questions