`

删工程时总中断,后来从文件删除,不能导入 Some projects cannot be imported because they already exist

阅读更多
删工程时总中断,后来从文件删除,不能导入 Some projects cannot be imported because they already exist
原因:删除这个工程时,总是出现部分文件正在使用,无法删除,后来就把tomcat及,workspace里的工程全删了,重启myeclipse,再导入工程,则出现这个错误

解决办法:打开要导入的工程:找到与src同目录下的.project文件,打开,改变<name></name>里的工程名称,再导入即可
<projectDescription>
<name>工程名称</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.wst.jsdt.core.javascriptValidator</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.wst.common.project.facet.core.builder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.wst.validation.validationbuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jem.workbench.JavaEMFNature</nature>
<nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature>
<nature>org.eclipse.wst.common.project.facet.core.nature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
<nature>org.eclipse.wst.jsdt.core.jsNature</nature>
</natures>
</projectDescription>
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics