I am trying to create a new project in netbeans. But when I add folder in the projects it always throws error: "package folder already used in project netbeans".

I deleted all folders in c:/users/../.netbeans/6.9/var/.

Still I am getting the same issue. The error mentions a folder already packaged as some old package name, but that old package name is not available in my system folders. Can anyone please help me?

有帮助吗?

解决方案

I found the solution: Actually my folder already contained a pom.xml file. Due to that it was not taking the new projects. I found this solution from this link.

其他提示

If your existing project folder contains a sub folder called "nbproject" . Delete the folder and then add it .The folder contains files regarding previous net-beans related project settings. I am importing in Net-beans 7.2 from an earlier version.

I had this problem and used all of the mentioned way but could not solve it. I change the name of folder that want to add and now it work properly.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top