Bad habits got me in trouble. I am used to using Shift-F6 on each main class 
and that's why led to the problem. I used the Run->Set Main project, then chose 
Clean and Build Main project and finally Run -> Run Main Project. It works 
great now.
To reproduce the problem, I used Shift-F6 again, and the error re-occurred.

Thank you all.

    On Monday, August 10, 2020, 5:03:33 PM GMT+4:30, HRH 
<hrh...@yahoo.com.invalid> wrote:  
 
  
Hi Chris,
I already have those properties in the aforementioned files as part of the 
initial setup. Both the pom and nbactions are having your recommended elements. 
I think my problem is somewhere eles, I will report back.

    On Monday, August 10, 2020, 4:38:34 PM GMT+4:30, Luff,Chris 
<chris.l...@cerner.com.invalid> wrote:  
 
 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 <hrh...@yahoo.com.INVALID> wrote:
Chuck,Thanks for the prompt response. During the installation and initial 
setup, I changed the artifact versions per instructions given byGetting Started 
with JavaFX

| 
| 
|  | 
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 
<cjgun...@gmail.com> wrote:

Update your POM to latest versions of Maven artifacts.

On Mon, Aug 10, 2020 at 3:34 AM HRH <hrh...@yahoo.com.invalid> 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 <hrh...@yahoo.com.invalid> 
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.
    

Reply via email to