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.

Bug 198517 - NoClassDefFoundError after refactoring main class
Summary: NoClassDefFoundError after refactoring main class
Status: RESOLVED WONTFIX
Alias: None
Product: projects
Classification: Unclassified
Component: Maven (show other bugs)
Version: 7.0
Hardware: PC Linux
: P3 normal (vote)
Assignee: Tomas Stupka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-11 14:18 UTC by RageSteel
Modified: 2016-07-07 08:39 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description RageSteel 2011-05-11 14:18:15 UTC
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
Comment 1 Jan Becicka 2011-05-19 12:44:31 UTC
works with J2SE project. Maven needs to handle it somehow.
Comment 2 Milos Kleint 2012-05-31 14:00:55 UTC
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?
Comment 3 Jan Becicka 2013-06-17 13:18:52 UTC
Take a look at implementation in J2SE Project
Comment 4 Milos Kleint 2013-10-02 14:52:38 UTC
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.
Comment 5 Martin Balin 2016-07-07 08:39:05 UTC
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