Eclipse错误:'设置构建路径'遇到错误 [英] Eclipse Error: 'Setting build path' has encountered error

查看:324
本文介绍了Eclipse错误:'设置构建路径'遇到错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用一个名为jtwitter的API。它有一个单一的jar文件jtwitter.jar我一直在使用它,并使用git维护它。我在github中托管了代码。
有一天,我没有碰到它的代码。今天,当我克隆了我的git repo(实际上我的系统有几天的崩溃,所以我不得不克隆),并将项目加载到eclipse。现在当我想将jtwitter.jar添加到buildpath中时,会出现以下错误。



我在这里给出了部分异常堆栈跟踪

  java.io.FileNotFoundException:D:\workspace\ltwitter\.classpath(Access被拒绝)
在java.io.FileOutputStream .open(Native Method)
在java.io.FileOutputStream。< init>(FileOutputStream.java:179)
在org.eclipse.core.internal.filesystem.local.LocalFile.openOutputStream(LocalFile .java:377)
在org.eclipse.core.internal.localstore.FileSystemResourceManager.write(FileSystemResourceManager.java:956)

请帮助。

解决方案

确保目录和文件仍然存在,看看D:\workspace\ltwitter是一个有效的路径,有一个.classpath文件,它是可读的。尝试在记事本中打开.classpath以测试可读性。


I am using an API called jtwitter. It has a single jar file jtwitter.jar I have been working with it and maintained it using git. I hosted the code in github. For somedays, i have not touched its code. Today, when i cloned my git repo (actually my system got a crash some days back so I had to clone ) and loaded the project into eclipse. Now when i wanted to add the jtwitter.jar into the buildpath, the following error occurs.

I am giving the partial exception stack trace here

java.io.FileNotFoundException: D:\workspace\ltwitter\.classpath (Access is denied)
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.<init>(FileOutputStream.java:179)
at org.eclipse.core.internal.filesystem.local.LocalFile.openOutputStream(LocalFile.java:377)
at org.eclipse.core.internal.localstore.FileSystemResourceManager.write(FileSystemResourceManager.java:956)

please help.

解决方案

Make sure that the directory and file are still there, take a look at D:\workspace\ltwitter is a valid path, has a .classpath file and it is readable. Try opening .classpath in Notepad for a test of readability.

这篇关于Eclipse错误:'设置构建路径'遇到错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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