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.
I'm using a maven project. Created class with main method and set it as main class to run. After i refactoring class name - main class does not changed and this leading to NoClassDefFoundError in the execution. Product Version = NetBeans IDE 7.0 (Build 201104080000) Operating System = Linux version 2.6.34.8-0.2-desktop running on i386 Java; VM; Vendor = 1.6.0_25 Runtime = Java HotSpot(TM) Client VM 20.0-b11
works with J2SE project. Maven needs to handle it somehow.
jbecicka: how? it is possible to listen to changes done to Rename/Move/Delete refactoring and know the old and new value of the type/classname?
Take a look at implementation in J2SE Project
one thing that would be useful in any case is externalize the main classname from the nbactions.xml file and avoid editing that one, only store the expression somewhere (pom.xml, nbconfiguration.xml) and do the expression evaluation on the fly only.
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue. Thanks for your cooperation, NetBeans IDE 8.2 Release Boss