Netbeans 错误:项目文件夹已存在且不为空 [英] Netbeans error: Project Folder already exists and is not empty
问题描述
我安装了 Netbeans ,因为我正在阅读这本书:Java 21 天.我是编程领域的完全新手.当我尝试在 Netbeans 中打开一个新项目时,出现错误:项目文件夹已存在且不为空.删除 nbproject 文件夹并重新启动 IDE 并不能解决此问题.有人可以帮我吗?
I installed Netbeans , because I am reading the book : Java in 21 days. I'm a complete novice in the world of programming. When I try to open a new project in Netbeans , I get the error : Project Folder already exists and is not empty . Deleting the nbproject folder and restarting the IDE doesn't solve this problem. Can anybody help me?
推荐答案
我在 Mac (10.8.4) 上安装了 NetBeans 7.3.1,它运行完美.我确实记得有一个类似的问题,但是,当尝试将项目创建到我认为是空的目录时(它不是......).对我来说,这只是删除项目目录的问题.对你来说,我在谷歌搜索时找到了与@striders 相同的答案.如果您使用的是 mac,则不会有包含userdir"的.netbeans"文件夹;相反,目录是 ~/Library/Application\ Support/NetBeans/7.2
.我理解7.2"是userdir".因此,如果解决方案是让 NetBeans 重新创建此目录,只需将其删除并重新启动即可.我测试了这个文件夹的删除,NetBeans 确实在启动时创建了它.
I have NetBeans 7.3.1 installed on a mac (10.8.4) and it works flawlessly. I do recall having a similar issue, however, when trying to create a project into a directory I thought was empty (it wasn't...). For me it was just a matter of deleting the project directory. For you, I found the same answer while Googling as @striders. If you are using mac, there won't be a ".netbeans" folder containing the "userdir"; rather, the directory is ~/Library/Application\ Support/NetBeans/7.2
. I understand "7.2" to be the "userdir". So if the solution is to have NetBeans recreate this directory, simply delete it and relaunch. I tested the deletion of this folder, and NetBeans does create it on start up.
http://wiki.netbeans.org/FaqWhatIsUserdir(目录信息...)
http://forums.netbeans.org/post-59080.html (有人说这有效...)
http://forums.netbeans.org/post-59080.html (someone said this worked...)
干杯
这篇关于Netbeans 错误:项目文件夹已存在且不为空的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!