netbeans
netbeans copied to clipboard
nb platform projects won't run unless build is executed first
Apache NetBeans version
Apache NetBeans 14
What happened
Can't build new empty project. But directly from maven build was done without errors by package goal.

How to reproduce
Don't know.
- Create new netbeans platform project
- Choose from project menu "Run"
Problem is resolved after making clean & build and when Run
Did this work correctly in an earlier version?
No
Operating System
Windows 10 21H1
JDK
17.0.1; Java HotSpot(TM) 64-Bit Server VM 17.0.1+12-LTS-39
Apache NetBeans packaging
Apache NetBeans provided installer
Anything else
No response
Are you willing to submit a pull request?
No
Code of Conduct
Yes
you mean you can't run it without building it first?
yes. when i press Run on helper-util-app

im getting errors on first screen
ok. So the title is wrong. It builds fine. If you press run without building first, it won't run. But if you build, it will run afterwards.
Run shouldn't trigger a build?
You should have 3 projects (at least) there. Presumably helper-util-parent, helper-util-app and helper-util-branding? You need to clean and build the parent project, then run the app project. I'm not sure if there's a way we could configure this to be a little less confusing at first?
Aside, also a problem here that clean and build fails on JDK 18 (and probably JDK 17) due to missing add-opens, etc.