Reputation: 10400
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.
Upvotes: 23
Views: 41656
Reputation: 233
On Mac, Below command helped me to resolve this.
sudo chmod 777 .classpath
Upvotes: 0
Reputation: 4113
I had the same problem, and I found out it was because the .classpath
file was hidden. Removing the hidden attribute resolved the issue.
Upvotes: 102
Reputation: 131
I had the same issue with 64-bit Windows 7 and it was resolved by clearing the Hidden attribute.
Upvotes: 13
Reputation: 1328332
Assuming the directory exist and has the proper authorization, check also your logs for missing properties during eclipse launch (see this thread)
If you find some missing properties, try this eclipse.ini
Upvotes: 0
Reputation: 45596
Check directory permissions on D:\workspace\ltwitter
and file permissions on D:\workspace\ltwitter\.classpath
.
File Properties->Security tab in Windows Explorer
Upvotes: 2
Reputation: 25401
Does D:\workspace\ltwitter\
exist? Do you have access to it? Is this where the project lies?
You can fix the build path using the context menu of the project -> Build Path -> Configure Build Path. There you can see all entries, the ones which are not valid are marked as such.
Upvotes: 0
Reputation: 630
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.
Upvotes: 10