This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
When you refactor the name of the current main class, it doesn't change it in the project properties, thus when you build the project, the manifest includes the OLD main class name. Workaround: change the main class manually from the project properties dialog.
Reassigning to java/project - there is similar issue 42245. I assume, that this issue can be fixed in MainClassUpdater. Reassign back if I'm wrong. Thanks.
I would say it is a regression. I filled a similar issue 42245 that was fixed.
A regression? Has it ever worked? Not for me in beta1, beta2 nor the recent builds.
Tomas/Jirka please evaluate...
Honzo Ch., you are right regarding beta 1 and beta2. However, if I refactor (rename) a project main class in the build 200410070525, then project main class property is changed to the new name automatically.
One note yet, the project manifest (<projectdir>/dist/<projectname>.jar/META-INF/MANIFEST.MF) is updated as soon as user invokes Build (Clean&Build) action. There is an inconsistence between project main class property and manifest.mf in the meantime.
I clear REGRESSION keyword
Will be fixed in NB 4.1
I've tried it and it works. The refactoring obviously does not update the manifest of already built archive (dist.jar) You should clean and build your project to correct it. The enhancement is: If the refactoring of main class or changing project properties should not cause project clean or invalidate the dist.jar
Nearly identical request already filed in issue #46776. *** This issue has been marked as a duplicate of 46776 ***