On 8/10/2020 5:51 AM, HRH wrote:
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.

If you take a look at <projdir>/nbactions.xml (or similarly in NB "proj > properties > actions) there's run and debug. Notice the "clean". I'm guessing you don't need to do the clean/build because that is implicit in the run/debug.

I don't know about the Shift-F6 binding for maven projects...

-ernie


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 <mailto: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 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>


        


    Getting Started with JavaFX

Getting started with JavaFX for Java desktop application development

<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>

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 <mailto: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 <mailto: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 <mailto: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.



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
For additional commands, e-mail: users-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to