netbeans icon indicating copy to clipboard operation
netbeans copied to clipboard

nb platform projects won't run unless build is executed first

Open tbw777 opened this issue 3 years ago • 5 comments
trafficstars

Apache NetBeans version

Apache NetBeans 14

What happened

image Can't build new empty project. But directly from maven build was done without errors by package goal.

image

How to reproduce

Don't know.

  1. Create new netbeans platform project
  2. 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

tbw777 avatar Jul 02 '22 05:07 tbw777

you mean you can't run it without building it first?

mbien avatar Jul 02 '22 06:07 mbien

yes. when i press Run on helper-util-app

image

im getting errors on first screen

tbw777 avatar Jul 02 '22 06:07 tbw777

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.

mbien avatar Jul 02 '22 07:07 mbien

Run shouldn't trigger a build?

tbw777 avatar Jul 02 '22 07:07 tbw777

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.

neilcsmith-net avatar Aug 01 '22 09:08 neilcsmith-net