Here is the github link to a very trivial project:
https://github.com/omniprof/javafx_01_basicexample.git


It is Maven based. If I try to run the project I get the following error:
Error: JavaFX runtime components are missing, and are required to run this 
application
If I use Run Maven -> Other goals and just hit enter it runs.

As per your suggestion, taking it a step further, I deleted the NetBeans 
folders in Users->[username]->AppData->Local and then in AppData->Roaming.
No change, same error. Use Run Maven->Other goals and it runs.

I do not install the plugin for JavaFX  2. I do this so that the project does 
not depend on anything NB specific to run as not all students use NB. I can use 
the Run commands if I do install this plugin. This suggests to  me that NB is 
ignoring Maven outside of Run Maven.

NetBeans 25 on a Windows 11 PC with an i9 and 32GB RAM.

Ken




-----Original Message-----
From: Neil C Smith <neilcsm...@apache.org>
Sent: March 13, 2025 1:23 PM
To: dev@netbeans.apache.org
Cc: Kenneth Fogel <kfo...@dawsoncollege.qc.ca>
Subject: Re: Run Maven / Maven Run

On Thu, 13 Mar 2025 at 15:42, Kenneth Fogel 
<kfo...@dawsoncollege.qc.ca.invalid> wrote:
> This is not a problem but an issue of clarity especially for anyone new to 
> NetBeans and Maven. There are two Run commands available for a project, the 
> green run symbol and on the context menu for a project. It appears that 
> neither invokes Maven, something I would think is expected if the project has 
> a pom.xml file.

It obviously should be expected, and that is why it's the default behaviour.

Something odd is going on with your setup, although I'm unclear what.
What project type?  Is there a project you can link to?  Have you tried a clean 
userdir?

In the project properties, you can see and edit what Maven goals are connected 
to NetBeans actions under the Actions section.  If you don't override the Run 
action you can also use the Run section.

Best wishes,

Neil

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

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




---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@netbeans.apache.org
For additional commands, e-mail: dev-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