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.
1) Open a project. 2) Goto Files Tab and highlight project folder. 3) Open Properties Window if not open. 4) Rename Project Folder in Properties:Name field. This renames folder but does not rename the project name. The project name always shows for project folder in the Files Tab. 5) Return to projects tab and hover mouse cursor over name of project and see if folder name reflects new name. Sometimes it does, sometimes it doesn't. 6) Regardless of step 5, right click project and choose Run. 7) Result: Error: Could not find or load main class com.sun.example.mvc.Main Java Result: 1 8) Look at project Propertis>>Run>>Main Class>>Browse Button. No classes are listed.* 9) By now if you hover the mouse over the project name in Projects Tab, it may reflect the new folder name, but it still won't run even if the name is correct. Solution 1: If you close the project and reopen it, it may run OK and everything is well. This may or many not work, if not try Solution 2. Solution 2: Close project and close NetBeans, restart and reopen project. This may or may not work, if not, try Solution 3. Solution 3: Close NetBeans and delete .netbeans/dev/var/cache/ directory. Restart and project should run. *One time when project would not run, the classes did show in Properties>>Run>>Main Class>>Browse Button, but selecting the Main class again did not work without closing project and reopening it.
The Project folder rename in Files View is not supported, use the Rename Project in Project tab which does correctly moves the project. The Files View should not allow project rename.
In fact canRename is false, i.e. F2 does not permit in-place rename. Reporter just went out of the way to find another UI to rename the node.
core-main #fc365ddec6f3
Integrated into 'main-golden' Changeset: http://hg.netbeans.org/main-golden/rev/fc365ddec6f3 User: Jesse Glick <jglick@netbeans.org> Log: #204968: Rename permitted on project root folder in Files tab