Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

exception has been caught while processing the refactoring 'Rename package'

This refactoring function in Eclipse for package names used to work for me fine until... today:

This is the first time I am receiving this weird Refactoring error, and I have no idea what to make of it:

An exception has been caught while processing the refactoring 'Rename Package'.

Reason: Problems encountered while moving resources.

Click 'Undo' to undo all successfully executed changes of the current refactoring. Click 'Abort' to abort the current refactoring.

What could possibly explain this sudden "change of heart" and how do I fix it?

enter image description here

like image 800
Android Eve Avatar asked Apr 17 '11 19:04

Android Eve


1 Answers

Seems from your snapshot that you are running windows 7, maybe vista. If its not a renaming issue, try running eclipse as administrator. It might be permissions-related, but its just a thought.

I see merit behind what Kurru is saying. Windows is not a case-sensitive operating system, meaning that is sees the words Cat and cat as the same thing. When you rename your package, Eclipse creates new directories/folder to put the package in. If you changed the case of your words and not actually rename it, it could throw this error.

like image 147
Warlock Avatar answered Sep 21 '22 13:09

Warlock