openjfx

How to generate executable jar in JavaFX with maven project

那年仲夏 提交于 2021-02-19 06:13:38
问题 I can't run generated jar file. Here's my error output: no main manifest attribute, in myapp.jar Here is my pom.xml file: <plugins> <plugin> <groupId>org.openjfx</groupId> <artifactId>javafx-maven-plugin</artifactId> <version>0.0.4</version> <configuration> <mainClass>Main</mainClass> <executable>/Library/Java/JavaVirtualMachines/adoptopenjdk-12.0.2.jdk/Contents/Home/bin</executable> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler

Problems with touch input and OpenJDK 11 with JavaFX 11

只愿长相守 提交于 2021-02-18 10:41:08
问题 I'm working on a JavaFX project and would like to switch from Oracle JDK 1.8 to OpenJDK 11. So far the transition has been pretty seamless, but there is still one main problem related to touch/mouse input that's causing some trouble. The JavaFX UI is supposed to run on a touch-enabled device, which used to work straight out of the box with Oracle JDK 1.8. When I touch the screen, the following sequence of mouse events is fired as expected: MOUSE_PRESSED MOUSE_RELEASED MOUSE_CLICKED After

How to debug a Maven OpenJFX application in IntelliJ

拜拜、爱过 提交于 2021-01-29 20:12:41
问题 Since JavaFX has become OpenJFX and needs to be added as a dependency to your Maven project, debugging a OpenJFX application has become complicated. In this question it is already answered how to solve it for NetBeans. But IntelliJ works slightly different. The Ppom.xml has been setup according to this example. How can you run an OpenJFX (JavaFX) application which is configured as a Maven project in debug mode in IntelliJ? 回答1: If you would copy the addition of VM options in the pom.xml for

How to debug a Maven OpenJFX application in IntelliJ

倾然丶 夕夏残阳落幕 提交于 2021-01-29 16:04:22
问题 Since JavaFX has become OpenJFX and needs to be added as a dependency to your Maven project, debugging a OpenJFX application has become complicated. In this question it is already answered how to solve it for NetBeans. But IntelliJ works slightly different. The Ppom.xml has been setup according to this example. How can you run an OpenJFX (JavaFX) application which is configured as a Maven project in debug mode in IntelliJ? 回答1: If you would copy the addition of VM options in the pom.xml for

Why can't I compile maven with OpenJFX and Deeplearning4J?

二次信任 提交于 2021-01-29 11:22:33
问题 I have a small issue that I don't know how to solve. I have started a simple basic JavaFX application and my pom.xml file looks like this: <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.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>se.danielmartensson</groupId> <artifactId>JNonlinearControl</artifactId> <version>0.0.1-SNAPSHOT</version>

JavaFX Export and VM arguments

て烟熏妆下的殇ゞ 提交于 2021-01-27 15:01:01
问题 I have the problem that I just can't export my JavaFX application. I can get it running with the VM arguments (inside the IDE and outside) but that's far from optimal. I want a simple "click to open" experience. Error: JavaFX runtime components are missing, and are required to run this application I am aware that this problem can be fixed with the vm arguments but as I said before "click to open" experience. I tried to make a fat jar using maven. (Here is my pom.xml): <project xmlns="http:/

OpenJFX Custom runtime image using Maven and jlink - Module exports or command line arguments?

爱⌒轻易说出口 提交于 2021-01-01 07:06:57
问题 I'm trying to create a custom runtime image that will not require installed JRE/JDK on the computer. I have followed the tutorial presented on OpenJFX Documentation (JavaFX and IntelliJ - Modular with Maven) and I am able to run the created image, but I want to include for my application class com.sun.glass.ui.Window (in module javafx.graphics). Before custom images, I was parsing as command line arguments the following: --add-opens javafx.graphics/com.sun.glass.ui=ALL-UNNAMED I want to

OpenJFX Custom runtime image using Maven and jlink - Module exports or command line arguments?

江枫思渺然 提交于 2021-01-01 07:05:38
问题 I'm trying to create a custom runtime image that will not require installed JRE/JDK on the computer. I have followed the tutorial presented on OpenJFX Documentation (JavaFX and IntelliJ - Modular with Maven) and I am able to run the created image, but I want to include for my application class com.sun.glass.ui.Window (in module javafx.graphics). Before custom images, I was parsing as command line arguments the following: --add-opens javafx.graphics/com.sun.glass.ui=ALL-UNNAMED I want to