“源目录已经是netbeans项目"从现有源打开项目时出错 [英] "Sources directory is already netbeans project" error when opening a project from existing sources

查看:20
本文介绍了“源目录已经是netbeans项目"从现有源打开项目时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经安装了 NetBeans 6.9.1 并为其安装了一些更新.

I've installed NetBeans 6.9.1 and installed few updates for it.

然后我从现有源创建了一个新项目.经过一些更改后,我关闭了它.现在我在尝试从现有源(相同文件)打开新项目时遇到错误:

Then I've created a new project from existing sources. After a few changes I've closed it. And now I am having an error, when trying to open a new project from existing sources (the same files):

Sources 目录已经是 netbeans 项目(可能只在内存中).

Sources directory is already netbeans project (maybe only in memory).

谷歌搜索后,我注意到它不仅发生在我身上.但我没有找到正确的解决方案.我尝试重新启动 IDE,尝试重新启动 PC,尝试重新安装 NetBeans.没有任何帮助.

After Googling it, I noticed it happened not only with me. But I didn't find the correct solution. I've tried to restart the IDE, I've tried to restart the PC, I've tried to reinstall NetBeans. Nothing helped.

推荐答案

当您从现有源创建 NetBeans 项目时,NetBeans 使用相同的目录添加自己的文件:一个 netbeans 文件夹,扩展名为 .项目文件.

When you create a NetBeans project from existing sources, NetBeans uses the same directory to add its own files: a netbeans folder with .proj files.

解决方案:删除netbeans文件夹并重启IDE.现在应该可以打开一个新项目了.

Solution: delete the netbeans folder and restart the IDE. Opening a new project should now work.

这篇关于“源目录已经是netbeans项目"从现有源打开项目时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆