`
yuting_lv
  • 浏览: 108495 次
  • 性别: Icon_minigender_2
  • 来自: 上海
社区版块
存档分类
最新评论

“setting build path” error 导致 eclipse 无响应

阅读更多

从svn上签出一个新项目, 然后发现更改项目build path里的jar包引用设置后, eclipse运行"setting build path"总卡死在进程中, 然后就无响应.

google到http://ryan.ifupdown.com/2010/03/03/setting-build-path-has-encountered-a-problem-in-eclipse/

,讲这种问题是由于从linux系统上拷贝eclipse workspace到windows系统所致, 找到项目的.classpath文件,去除windows隐藏attributs就好.

我用文本编辑软件在windows系统下打开.classpath文件, 发现里面只有2个atrributes属性:

<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/jre1.6.0_05">
		<attributes>
			<attribute name="owner.project.facets" value="java"/>
		</attributes>
	</classpathentry>
	<classpathentry kind="con" path="org.eclipse.jst.server.core.container/org.eclipse.jst.server.tomcat.runtimeTarget/Apache Tomcat v6.0">
		<attributes>
			<attribute name="owner.project.facets" value="jst.web"/>
		</attributes>
	</classpathentry>

 没有看到什么隐藏属性, 之后重启eclipse, 编译项目后,问题就解决了.

 这次的解决之道就是用windows系统下的文本编辑器打开.classpath文件.

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics