javafx-11

Build executable JAR with JavaFX11 from maven

浪尽此生 提交于 2019-12-30 10:40:29
问题 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 but i don't know what i'm supposed to do now. My pom.xml <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>3.8.0</version> <configuration> <verbose>true</verbose> <

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

核能气质少年 提交于 2019-12-30 06:33:46
问题 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

Java 11 and E(fx)clipse JavaFX plugin on Eclipse 4.9: An error has occurred - see the log file

冷暖自知 提交于 2019-12-22 17:52:10
问题 I can't get my Eclipse 2018-09 (4.9) running with Java 11 and E(fx)clipse JavaFX plugin. I run the typical Help -> Install new software procedure for E(fx)clipse, but after restart, Eclipse fully crashes: I can't even open Eclipse anymore for a new workspace! When I try to run Eclipse, I get a dialog: "An error has occurred. See the log file C:\workspace\.metadata\.log" I've put a copy of that log file on my Github. Well, I could run a hello world JavaFX application using this manual library

TornadoFX unresolved JavaFx

余生颓废 提交于 2019-12-22 12:38:59
问题 I wanted to create a new project that should be a desktop application. For this purpose, I have selected Kotlin language and TornadoFX framework. I have installed the TornadoFX plugin and created a new T tornadofx-gradle-project . The base setup made by Intellij was successful but I have encountered a problem. When I wanted to run the generated project it failed. The project cannot resolve the java fx. I have dug through the web and found nothing that would fix the problem. The error log that

JavaFX setup in Eclipse: the option “JavaFX 11+ SDK” is for what?

给你一囗甜甜゛ 提交于 2019-12-22 11:24:00
问题 Trying to setup eclipse (2019-03) to develop with JavaFX 11. Installed e(fx)clipse 3.5.0. Have found several tutorials, but none of them explains what is this box (JavaFX 11+ SDK) in the window -> preferences -> javafx dialog (the same we setup the scenebuilder executable). Does anybody knows what is this for? Thought that I should only put here the folder where the Java11 SDK is, and all will work fine... but this is not the case. Thanks in advance. Best regards! 来源: https://stackoverflow

JavaFX 11 using Maven throws Exception: “WindowsNativeRunloopThread”

拟墨画扇 提交于 2019-12-22 07:04:10
问题 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 site I get the following error. Exception in thread "WindowsNativeRunloopThread" java.lang.NoSuchMethodError: <init> at javafx.graphics/com.sun.glass.ui.win.WinApplication.staticScreen_getScreens(Native Method) at javafx.graphics/com.sun.glass.ui

Different behaviour between Maven & Eclipse to launch a JavaFX 11 app

☆樱花仙子☆ 提交于 2019-12-17 17:13:57
问题 I'm starting to dig into Java 11 migration for a large app (includes Java FX parts) and I need your help to understand the difference between Maven (3.5.4) on the command-line and Eclipse (2018-09 with Java11 upgrade). I have a simple Java 11 class import java.util.stream.Stream; import javafx.application.Application; import javafx.scene.Scene; import javafx.scene.control.Label; import javafx.stage.Stage; public class HelloFX extends Application { @Override public void start(Stage stage) {

How to deploy a JavaFX 11 Desktop application with a JRE

眉间皱痕 提交于 2019-12-17 02:23:22
问题 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 Start). I can easily update the application, too, by deploying new JARs to the server. Everything works well. However, Oracle has discontinued Web Start with Java 11, and in their “Java Client Roadmap Update” white paper, March 2018, they recommend

JavaFX Integer Spinner (IntegerSpinnerValueFactory) does not wrap around the value to minimum

ぐ巨炮叔叔 提交于 2019-12-12 09:45:23
问题 I have created an Integer Spinner with values min (5), max (15) and initialValue (12) and wrapAround (true) . Once the spinner reaches the max (15) value during increment, instead of resetting the value to min (5) as it says in the documentation, it is being reset to value 10 (max (15) - min (5)) public final void setWrapAround​(boolean value) Sets the value of the property wrapAround. Property description: The wrapAround property is used to specify whether the value factory should be

How to recompile JavaFX 11/12

孤街浪徒 提交于 2019-12-11 18:31:42
问题 I'm trying to recompile JavaFX 11 (or 12) from source in an eclipse project, but I encounter some problems. Here is how I proceed: 1. I download the JavaFX SDK for Windows here 2. I create an eclipse project for each JavaFX module (javafx.base, javafx.controls, javafx.fxml, javafx.graphics, javafx.media, javafx.swing and javafx.web) 3. I correct various minor compilation errors 4. Finally I create a simple JavaFX application in a new project But when I execute the application, I get this