Questions tagged [javafx-11]

The JavaFX platform enables developers to create client applications based on JavaSE that behave consistently across multiple platforms. Built on Java technology since JavaFX 2.0, it was part of the default JDK since JDK 1.8, but starting Java 11, JavaFX is offered as a component separate from the core JDK.

The JavaFX platform enables developers to create client applications based on JavaSE that behave consistently across multiple platforms.

Built on Java technology since JavaFX 2.0, it was part of the default JDK since JDK 1.8, but starting Java 11, JavaFX is offered as a component separate from the core JDK.

JavaFX has been moved to OpenJDK under the OpenJFX project, and a mirror of the OpenJFX repository has been created on GitHub. OpenJFX is free software, licensed under the GPL with the class path exception, just as OpenJDK. Anybody is welcome to contribute to this project.

JavaFX 11 GA was released on September 18th, 2018, a week before the release of Java 11. A new OpenJFX community site was launched at the same time at http://openjfx.io/.

Getting Started

Using an early access of Java 11, JavaFX 11 can be added to the project via:

  • Downloading JavaFX 11 for the specific machine, and including the jars and native libraries in the project.

  • Retrieving JavaFX 11, that can be either downloaded from openjfx.io or by accessing any of the javafx modules from maven central from Maven Central, and including them as dependency to Maven or Gradle projects.

For a Maven project:

<dependencies>
    <dependency>
        <groupId>org.openjfx</groupId>
        <artifactId>javafx-controls</artifactId>
        <version>11</version>
        <classifier>$platform</classifier>
    </dependency>
</dependencies>

And for Gradle:

dependencies {
    compile "org.openjfx:javafx-controls:11:${platform}"
}

See this guide for running a Hello World sample.

For JavaDoc see this link.

339 questions
13
votes
5 answers

Bundle JavaFX app with openjdk 11 + runtime

I've created a small HelloWorld Java app that relies on OpenJDK 11 and JavaFX. The app is packaged in a jar file which can only be run if I have installed Java 11 and JavaFX on my system separately. Now I'd like to convert my jar into a…
n41r0j
  • 143
  • 2
  • 9
12
votes
3 answers

How to fix "Error: JavaFX runtime components are missing, and are required to run this application"?

My JavaFX application is running perfectly well from source but When I'm compiling to a single jar file I get error : Error: JavaFX runtime components are missing, and are required to run this application. I'm using Maven as my repository manager…
Hilary Okoro
  • 281
  • 1
  • 3
  • 7
12
votes
1 answer

JDK11/JavaFX: How do I make a fat jar without build/depdency management?

I think it goes without saying that I should be able to use Oracle's own JDK with JavaFX (from gluonhq) to build a distributable jar file that users can just USE. After an exhaustive search, much reading (24 hours or more over the last few…
chrips
  • 4,996
  • 5
  • 24
  • 48
12
votes
4 answers

JavaFX Modular Application, java.lang.module.FindException: Module javafx.controls not found (Java 11, Intellij)

I have a problem with my modular JavaFX application. I created a JavaFX project and added the JavaFX lib and JavaFX modules get recognized. However, I keep getting these error message: Error occurred during initialization of boot…
rizky ramadhan
  • 157
  • 1
  • 2
  • 6
12
votes
2 answers

Package 'com.example' reads package 'javafx.beans' from both 'javafx.base' and 'javafx.base'

In module-info.java i get the error Package 'com.example' reads package 'javafx.beans' from both 'javafx.base' and 'javafx.base'. Not only does the migration (Java 8 to Java 11) frustrate me slowly but surely, this error does not make any sense…
Hannes
  • 5,002
  • 8
  • 31
  • 60
12
votes
3 answers

How do I use JavaFX 11 in Eclipse?

I have some trouble with JavaFX. I wanted to start creating apps, desktop or mobile, at least something. So I found out I could use the JavaFX library for it. But as far as I understood, it was excluded from JDK 9. I'm actually using OpenJDK 11 on…
Alex Chashin
  • 3,129
  • 1
  • 13
  • 35
11
votes
5 answers

JavaFX Font not being rendered correctly

public class Main extends Application { public static void main(String[] args) { launch(args); } @Override public void start(Stage primaryStage) { primaryStage.setTitle("Hello World!"); Button btn = new…
RyuzakiSultan
  • 123
  • 1
  • 7
11
votes
2 answers

Build executable JAR with JavaFX11 from maven

I've made a Java app which uses Maven, JavaFX and some other dependencies. Before, it was easy to build an executable jar but since Java11 is modular and does not include JavaFX i just can't build a working one. I've already tried a lot of things…
crosf32
  • 166
  • 1
  • 4
  • 11
11
votes
2 answers

I can't debug an application using netbeans 11 with JavaFX 12

I've downloaded netbeans 11 with support for java 12 So I followed up the steps from the Gluon webpage running JavaFX and Netbeans Non modular with maven > https://openjfx.io/openjfx-docs/#next-steps I have configured as showed in the instructions…
Alex
  • 124
  • 1
  • 9
11
votes
1 answer

Java FX Modular Application, Module not found (Java 11, Intellij)

Hello I have a problem with my modular Java FX Application. First of all I created a JavaFX Project with the Intellij Wizard. I added the Java FX lib: And the JavaFX modules get recognized. My module-info.java: I also added the VM options: But…
No110
  • 179
  • 1
  • 1
  • 10
11
votes
2 answers

Does JavaFX after removing it from jdk cross-platform?

Is JavaFX 11 cross-platform? As i saw in openjfx.org that i have to download releases for each platform. And if so, can i in any way use it in a cross-platform form? And should i use each javafx release for each java release? Don't tell me to use…
10
votes
4 answers

Getting error while creating JavaFX11 application in Apache Netbeans 10

i am new to java fx and i have downloaded Apache Netbeans 9 which runs on java 11. since java fx is shipped separately, i have downloaded openjfx-11.0.1_SDK and followed steps in this link https://openjfx.io/openjfx-docs/#install-javafx when i try…
pappu_kutty
  • 2,378
  • 8
  • 49
  • 93
10
votes
5 answers

JavaFX 11 using Maven throws Exception: "WindowsNativeRunloopThread"

I have been testing JavaFX 11 using Maven and cannot get it to work. I have Open JDK 11 installed and if adding jars to build path from downloadable .zip everything works just fine. However when I use the recommended POM file from the javafx 11…
Jamie Macaulay
  • 794
  • 6
  • 20
9
votes
1 answer

Eclipse cannot find module even the module path is explicitly provided

I have created a module com.company.ep that is located in the source folder com.company.ep. (Yes, I have removed src from the build path and deleted it!) Inside the source folder, I have a couple of packages as the following: com.company.ep <---…
vesontio
  • 381
  • 1
  • 7
  • 19
8
votes
1 answer

Fastest way to clear group with a lot of shapes / multithreading

In my JavaFX project I'm using a lot of shapes(for example 1 000 000) to represent geographic data (such as plot outlines, streets, etc.). They are stored in a group and sometimes I have to clear them (for example when I'm loading a new file with…
Enrico
  • 415
  • 1
  • 10
1
2
3
22 23