You’ll need the javafx-maven-plugin...
<groupId>org.openjfx</groupId>
<artifactId>javafx-maven-plugin</artifactId>
<version>0.0.4</version>
Then configure the run action in nbactions to execute that;
<action>
<actionName>run</actionName>
<packagings>
<packaging>jar</packaging>
</packagings>
<goals>
<goal>clean</goal>
<goal>javafx:run</goal>
</goals>
</action>
On 10 Aug 2020, at 12:55, HRH
<[email protected]<mailto:[email protected]>> wrote:
Chuck,
Thanks for the prompt response. During the installation and initial setup, I
changed the artifact versions per instructions given by Getting Started with
JavaFX<https://nam01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fopenjfx.io%2Fopenjfx-docs%2F%23introduction&data=02%7C01%7CChris.Luff%40cerner.com%7Cb5a0694a339a43ccb89608d83d244336%7Cfbc493a80d244454a815f4ca58e8c09d%7C0%7C1%7C637326573244715711&sdata=hkygr0Ax673mZ27n0%2BrmTsG08kepLw2%2FJe2xxfQTLVQ%3D&reserved=0>
<https://nam01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fopenjfx.io%2Fopenjfx-docs%2F%23introduction&data=02%7C01%7CChris.Luff%40cerner.com%7Cb5a0694a339a43ccb89608d83d244336%7Cfbc493a80d244454a815f4ca58e8c09d%7C0%7C1%7C637326573244715711&sdata=hkygr0Ax673mZ27n0%2BrmTsG08kepLw2%2FJe2xxfQTLVQ%3D&reserved=0>
Getting Started with JavaFX
Getting started with JavaFX for Java desktop application development
Here is the snap-shot of my pom.xml for these artifacts. Am I missing something
else?
<dependencies>
<dependency>
<groupId>org.openjfx</groupId>
<artifactId>javafx-controls</artifactId>
<version>14</version>
</dependency>
<dependency>
<groupId>org.openjfx</groupId>
<artifactId>javafx-fxml</artifactId>
<version>14</version>
</dependency>
</dependencies>
Thanks
On Monday, August 10, 2020, 3:39:52 PM GMT+4:30, Chuck Davis
<[email protected]<mailto:[email protected]>> wrote:
Update your POM to latest versions of Maven artifacts.
On Mon, Aug 10, 2020 at 3:34 AM HRH
<[email protected]<mailto:[email protected]>> wrote:
I forgot to indicated, that I have already modified the
<configuration>
<!--
<mainClass>org.openjfx.mavenbasedlearningfx.App</mainClass> -->
<mainClass>org.me.learningfx.control.MavenFxBasicDemo</mainClass>
</configuration>
in the pom.xml file.
Thanks
On Monday, August 10, 2020, 2:54:09 PM GMT+4:30, HRH
<[email protected]<mailto:[email protected]>> wrote:
Hi,
While using "Java with Maven"->FXML JavaFX Maven Archtype" works fine to run
its pre-configured App.java, creating a new package with a new main class fails
to compile with the following error. Any insights on which resources need to be
modified?
Thanks in advance.
Error msg:
Error: JavaFX runtime components are missing, and are required to run this
application
Command execution failed.
............................
org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit
value: 1)
at org.apache.commons.exec.DefaultExecutor.executeInternal
(DefaultExecutor.java:404)
------
Total time: 5.034 s
Finished at: 2020-08-10T14:49:10+04:30
------------------------------------------------------------------------
Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.5.0:exec
(default-cli) on project Mavenbasedlearningfx: Command execution failed.:
Process exited with an error: 1 (Exit value: 1) -> [Help 1]
CONFIDENTIALITY NOTICE This message and any included attachments are from
Cerner Corporation and are intended only for the addressee. The information
contained in this message is confidential and may constitute inside or
non-public information under international, federal, or state securities laws.
Unauthorized forwarding, printing, copying, distribution, or use of such
information is strictly prohibited and may be unlawful. If you are not the
addressee, please promptly delete this message and notify the sender of the
delivery error by e-mail or you may call Cerner's corporate offices in Kansas
City, Missouri, U.S.A at (+1) (816)221-1024. Cerner Limited, Registered in
England no 2519305, Registered Office 37 North Wharf Road, London W2 1AF.