Ana*_*and 23 java eclipse buildpath
我正在使用一个名为jtwitter的API.它有一个jar文件jtwitter.jar我一直在使用它并使用git维护它.我在github中托管了代码.有一天,我没有触及它的代码.今天,当我克隆我的git repo时(实际上我的系统在几天前发生了崩溃所以我不得不克隆)并将项目加载到eclipse中.现在,当我想将jtwitter.jar添加到构建路径中时,会发生以下错误.
我在这里给出了部分异常堆栈跟踪
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)
Run Code Online (Sandbox Code Playgroud)
请帮忙.
Sen*_*try 102
我有同样的问题,我发现这是因为.classpath文件被隐藏了.删除隐藏属性解决了该问题.
Ed *_*bel 10
确保目录和文件仍然存在,看看D:\ workspace\ltwitter是一个有效的路径,有一个.classpath文件,它是可读的.尝试在记事本中打开.classpath以进行可读性测试.
| 归档时间: |
|
| 查看次数: |
39104 次 |
| 最近记录: |