在NetBeans IDE中重命名项目,为什么会出现错误?

问题描述

我复制了一个名为DepCalc_Starter的文件,该文件可以正确打开到NetBeans IDE中,并将其重命名为DepInherit (picture of the DepCalc/DepInherit file)

然后我打开NetBeans IDE,选择“打开项目”,然后选择“ DepInherit”项目(image of what it looked like when I selected DepInherit as the project)。然后将其打开为“ DepCalc”,这很好,因为无论如何我都要在IDE本身中对其重命名

但是我的主要问题在于重命名。我将项目重命名为“ DepInherit” (screenshot of me renaming the project),但是在重命名时,IDE会针对“ DepInherit”项目(picture of error)中的某个文件引发错误

有人可以帮助我解决错误吗?

解决方法

我在Netbeans和其他IDE上也遇到过类似的问题。我建议创建一个新项目,然后将所有文件移过来并重命名这些类。过去对我有用。