Eclipse:错误“..与另一个项目的位置重叠”。尝试创建新项目时 [英] Eclipse: Error ".. overlaps the location of another project.." when trying to create new project

查看:1207
本文介绍了Eclipse:错误“..与另一个项目的位置重叠”。尝试创建新项目时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

任何人都可以帮忙。在创建新项目时,我会在eclipse中收到错误消息,我不明白为什么。



我已经在级别上创建了一个工作空间


C:\Users\Martin\Java\Counter


内部计数器中没有文件,但是有一个名为counter_src的目录,其中包含项目计数器的源文件。



所以在eclipse中,新的java项目和然后取消选中默认位置,然后选择目录



counter_src(这是从Counter开始的一个级别)



但它现在显示


C:\Users\Martin\Java\Counter\counter_src与
的另一个位置重叠项目:'counter_src'


现在,如果我在


C:\Users\Martin\Java\


其中意味着我的counter_src实际上是2级,然后它允许我,但问题是目录JAVA包含很多项目,所以我想在Counter(没有文件)中创建工作区,其中有一个counter_src的子目录,其源文件是。



还测试了从C:\Users\Martin\Java\创建目录,它似乎也可以工作,但是我不想创建另一个子目录C:\Users\Martin\Java\只是为了存储我的工作区1项目。



我真的很感谢任何帮助

解决方案

Eclipse是错误的,因为如果您尝试在目录中创建一个项目,Eclipse不知道它是否是一个实际的项目 - 所以它的错误,可以避免您失去工作!



所以你有两个解决方案:


  1. 移动文件夹'coun ter_src,然后创建项目(将创建目录),然后将源文件导入到新创建的counter_src中。


  2. 单击项目资源管理器并导入现有项目,选择 C:\Users\Martin\Java\Counter\ 作为根目录。如果Eclipse看到一个项目,您将能够导入它。



can anyone help. I keep getting an error message in eclipse when creating a new project and i don't understand why.

I have created a workspace at the level

C:\Users\Martin\Java\Counter

Inside Counter there are no files but there is a directory called counter_src which contains source files for the project Counter

So in eclipse I do, new java project, and then uncheck default location and choose the directory

counter_src (which is one level down from Counter)

but it now displays

C:\Users\Martin\Java\Counter\counter_src overlaps the location of another project: 'counter_src'

Now if i create my workspace at

C:\Users\Martin\Java\

which means my counter_src is actually 2 levels down then it allows me, but the problem is that the directory JAVA contains lots of projects so i wanted to create the workspace in Counter (which has no files) which has subdirectory of counter_src where my source files are.

Also tested creating directory off of C:\Users\Martin\Java\ and it appears to work also but I didn't want to create another subdirectory off of "C:\Users\Martin\Java\" just to store my workspace for 1 project.

I would really appreciate any help on this, i am a little list.

Thnaks in advance

解决方案

Eclipse is erroring because if you try and create a project on a directory that exists, Eclipse doesn't know if it's an actual project or not - so it errors, saving you from losing work!

So you have two solutions:

  1. Move the folder 'counter_src' somewhere else, then create the project (which will create the directory), then import the source files back into the newly created 'counter_src'.

  2. Right-click on the project explorer and import an existing project, select C:\Users\Martin\Java\Counter\ as your root directory. If Eclipse sees a project, you will be able to import it.

这篇关于Eclipse:错误“..与另一个项目的位置重叠”。尝试创建新项目时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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