openjfx

Migration issues concerning OpenJDK 11 & OpenJFX 11 (& Proguard)

青春壹個敷衍的年華 提交于 2019-12-10 17:20:15
问题 we are currently migrating a Java application from Oracle JDK 8 (application code delivered by JNLP) to OpenJDK 11 (application code delivered as runnable along with a Java Runtime). Although we found more or less a working solution in our test environment we still have following issues: Our application needs JavaFX and we want to use jlink for building. Is it recommended to use the OpenJFX jmods supplied on https://gluonhq.com/products/javafx to build an appropriate jlink image using OpenJDK

How do I get Java FX running with OpenJDK 8 on Ubuntu 18.04.2 LTS?

你离开我真会死。 提交于 2019-12-05 18:06:32
问题 When trying to compile an JavaFX application in the environment: java -version openjdk version "1.8.0_212" OpenJDK Runtime Environment (build 1.8.0_212-8u212-b03-0ubuntu1.18.04.1-b03) OpenJDK 64-Bit Server VM (build 25.212-b03, mixed mode) cat /etc/lsb-release DISTRIB_ID=Ubuntu DISTRIB_RELEASE=18.04 DISTRIB_CODENAME=bionic DISTRIB_DESCRIPTION="Ubuntu 18.04.2 LTS" I get the error-message: cannot access javafx.event.EventHandler [ERROR] class file for javafx.event.EventHandler not found I tried

How do I get Java FX running with OpenJDK 8 on Ubuntu 18.04.2 LTS?

拟墨画扇 提交于 2019-12-04 02:25:59
When trying to compile an JavaFX application in the environment: java -version openjdk version "1.8.0_212" OpenJDK Runtime Environment (build 1.8.0_212-8u212-b03-0ubuntu1.18.04.1-b03) OpenJDK 64-Bit Server VM (build 25.212-b03, mixed mode) cat /etc/lsb-release DISTRIB_ID=Ubuntu DISTRIB_RELEASE=18.04 DISTRIB_CODENAME=bionic DISTRIB_DESCRIPTION="Ubuntu 18.04.2 LTS" I get the error-message: cannot access javafx.event.EventHandler [ERROR] class file for javafx.event.EventHandler not found I tried to find a solution by following these links: how to add javafx dependencies in maven with java 10

@FXML annotation and FXMLLoader class not resolved to a type in Java 11 and JavaFX 11

坚强是说给别人听的谎言 提交于 2019-12-02 11:15:58
问题 Earlier my project used to be on Java 8 but now I am using Java 11 along with JavaFX 11 and now JavaFX has been decoupled from Java since Java 11. I haven't download the JavaFX SDK but added below dependency in pom.xml for getting required modules and jar files which were used to be part of Java itself in earlier versions. <dependency> <groupId>org.openjfx</groupId> <artifactId>javafx-controls</artifactId> <version>11</version> </dependency> But I am getting compilation error can not be

javafx.controls could not be found JavaFX 11 / JDK 11.0.1

橙三吉。 提交于 2019-11-30 20:24:39
I am using InteliJ, I've gone through all other solutions that seem to work for everybody else. I was getting an error: Caused by: java.lang.IllegalAccessError: class com.sun.javafx.fxml.FXMLLoaderHelper (in unnamed module @0x5782d366) cannot access class com.sun.javafx.util.Utils (in module javafx.graphics) because module javafx.graphics does not export com.sun.javafx.util to unnamed module @0x5782d366 I then added the following to VM options in the run config: --module-path="C:\Users\mresp_000\Desktop\Business\Code\SDKS\javafx-sdk-11.0.1\lib" \ --add-modules=javafx.controls \ --add-exports

在 Intellij IDEA 里使用 OpenJFX (JavaFX)

女生的网名这么多〃 提交于 2019-11-29 20:21:54
JDK 11 把 JavaFX 剥离了出来,形成了单独且开源的 OpenJFX 模块。 本文的目的是通过简单的例子解释这一变化对使用 JavaFX 所造成的影响,并找到一种在 IDEA 2018.2 上使用它的办法。 首先,OpenJFX 官网的入门文档指示我们手动下载 SDK,但在 maven 的帮助下这不是必须的。虽然同样得下载,但这被 maven 自动化了。 我们的 pom.xml 如下: <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>sample</groupId> <artifactId>javafx</artifactId> <version>1.0-SNAPSHOT</version> <properties> <project.build

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

不羁岁月 提交于 2019-11-29 01:58:25
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 file: module gui{ requires javafx.graphics; requires javafx.controls; exports com.test; } I compile with following: javac -p G:\openjfx\javafx-jmods-11 -d mods --module-source-path src src\gui\com\test\*.java src\gui\module-info.java Compilation succeeds. But I am unable to run the compiled code using the below command: java -p G:\openjfx\javafx-jmods

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

僤鯓⒐⒋嵵緔 提交于 2019-11-28 12:43:49
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 the action to run this app. Run Project clean javafx:run But there is nothing specified to debug the project. Is there a way to debug this javaFX project? <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0

Package a non-modular JavaFX application

大兔子大兔子 提交于 2019-11-27 21:34:45
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 already added the artifacts from org.openjfx to the classpath and am including them in the fat jar. If I start my jar from the command line, I get Error: JavaFX runtime components are missing, and are required to run this application I found two possible ways around this problem: The dirty one: Write a special launcher that does not extend

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

血红的双手。 提交于 2019-11-27 14:50:52
问题 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 file: module gui{ requires javafx.graphics; requires javafx.controls; exports com.test; } I compile with following: javac -p G:\openjfx\javafx-jmods-11 -d mods --module-source-path src src\gui\com\test\*.java src\gui\module-info.java Compilation