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.

282 questions
90
votes
5 answers

IntelliJ can't recognize JavaFX 11 with OpenJDK 11

I'm having trouble getting IntellJ to recognize JavaFX packages. With a new JavaFX project, with OpenJDK 11, when trying to build the project, IntelliJ can't recognize the JavaFX packages. I've imported openjfx:javafx-base-11 from the Maven…
AlwaysNeedingHelp
  • 1,509
  • 1
  • 17
  • 24
54
votes
1 answer

Maven Shade JavaFX runtime components are missing

I'm trying to create a JFX11 self-containing jar using maven dependencies. From the research I've done, it seems the best way to do this is through the maven shade plugin. However, When I run it, I get the this error: Error: JavaFX runtime…
Bitclef
  • 543
  • 1
  • 6
  • 5
42
votes
3 answers

JavaFX 11 : Create a jar file with Gradle

I am trying to upgrade a JavaFX project from the 8 Java version to the 11 version. It works when I use the "run" Gradle task (I followed the Openjfx tutorial), but when I build (with the "jar" Gradle task) and execute (with "java -jar") a jar file,…
Flpe
  • 686
  • 1
  • 7
  • 11
33
votes
6 answers

How to add JavaFX runtime to Eclipse in Java 11?

I am getting the following error as Java 11 excluded the JavaFX as part of the latest version. Error: JavaFX runtime components are missing, and are required to run this application So how can I add JavaFX to Eclipse in Java 11? Thanks.
user3520615
  • 327
  • 1
  • 4
  • 6
30
votes
2 answers

How to deploy a JavaFX 11 Desktop application with a JRE

I have a JavaFX (JDK 8) desktop business application, which uses Java Web Start for deployment. Users have Java 8 installed, and they simply go to the URL (a public URL on my AWS Linux server) and the application downloads / starts (using Web…
mcs75
  • 319
  • 1
  • 3
  • 6
25
votes
4 answers

JavaFX 11: IllegalAccessError when creating Label

This question is likely about the same issue as this one, but it appears the asker of that one hasn't added enough information to receive a helpful response. I am trying to run a JavaFx application with JDK and JavaFx SDK version 11.0.2. This code…
Reinis Mazeiks
  • 521
  • 1
  • 4
  • 13
21
votes
5 answers

Build and deploy javafx application using java11

I followed the steps in https://blog.jetbrains.com/idea/2013/03/packaging-javafx-2-applications-in-intellij-idea-121/ but when I try to build artifacts the as in the last step I get this error Error:Java FX Packager: Can't build artifact -…
humazed
  • 66,202
  • 30
  • 86
  • 124
19
votes
1 answer

Package a non-modular JavaFX application

I have a Java 8 application, that uses JavaFX and where the main class extends javafx.application.Application . Currently, I deliver it as a fat jar and it runs fine on Oracle Java 8. Now I want it to be able to run on OpenJDK 11. To add JavaFX, I…
taranion
  • 501
  • 1
  • 3
  • 13
18
votes
2 answers

Using JavaFX with Intellij IDEA

I've followed a tutorial precisely and I can't seem to get it to work. The tutorial is under JavaFX and Intellij Non-modular from IDE sections: https://openjfx.io/openjfx-docs/#install-java Here is the error message I receive when trying to run the…
Jonathan Woollett-light
  • 1,491
  • 2
  • 17
  • 27
16
votes
3 answers

JavaFX-11 with VSCode

I must be missing something obvious here... I am experimenting with VSCode (coming from Eclipse), but I am unable to get VSCode to see the JavaFX11 libraries. In the import statements, all references to JavaFX components are marked: [Java] The…
Brad Richards
  • 1,123
  • 3
  • 12
  • 21
16
votes
2 answers

Running javafx sample on JDK 11 with OpenJFX 11 JMODS on Module Path

I have downloaded the JavaFX Jmod files from OpenJFX project and placed them in the directory G:\openjfx\javafx-jmods-11. I am using OpenJDK 11 which has no JavaFX jmod in JAVA_HOME/jmods i.e it doesn't come with JavaFX distribution. Module info…
MohamedSanaulla
  • 5,802
  • 5
  • 25
  • 42
14
votes
5 answers

Migration to JDK 11 + JavaFX 11 giving RuntimeException

I've got an application on Java 8 + JavaFX that I want to migrate to Java 11. The basis aim is to give a .jar to users on a network and so they can use this little application. I'm using JavaFX for the interface and sqlite-jdbc to generate a…
Drimux
  • 316
  • 1
  • 2
  • 10
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
  • 141
  • 2
  • 8
12
votes
2 answers

Error: JavaFX runtime components are missing - JavaFX 11 and OpenJDK 11 and Eclipse IDE

I have this classical issue: Using JavaFX 11 with OpenJDK 11 together with Eclipse IDE. Error: JavaFX runtime components are missing, and are required to run this application I have OpenJDK 11.0.2 dell@dell-pc:~$ java -version openjdk version…
Daniel Mårtensson
  • 651
  • 2
  • 5
  • 17
12
votes
1 answer

IntelliJ IDEA - Error: JavaFX runtime components are missing, and are required to run this application

I'm running IntelliJ IDEA Ultimate 2018.2.5 with JDK 11.0.1 and JavaFX 11 from OpenJFX. I know it's a common error and I tried many of the proposed fixes but nothing works. No matter which JavaFX project I try to run I get the error: Error: JavaFX…
abg
  • 321
  • 1
  • 2
  • 9
1
2 3
18 19