Eclipse Error: ‘Setting build path’ has encountered error

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.

Setting build path has encountered a Pproblem – A resource exists with a different case

I have a java project with build path related to folder that were deleted. Now I want to edit references but while saving I got following error – Setting build path has encountered a problem – A reso

Eclipse error on startup: ‘Android LIbrary Update’ has encountered

Eclipse seems to be giving me an error on startup and I am not sure what the cause is. As soon as eclipse launches, a dialog appears that says: `Android Library Update` has encountered a problem. An i

An internal error occurred during: “Setting build path” in Eclipse

Good day. I have project on android SDK that used android-support-v4.jar lib. I have an SVN for this project. I code it on Ubuntu and Mac Os Eclipse. So the path for this library is different for Mac

Build error in eclipse

I am using eclipse HELIOS. I am getting the following error message whenever I build my project. Has anyone else experienced such error? Is it a problem of eclipse or the project? It never occured to

‘Building workspace’ has encountered an error

Eclipse Luna 4.4.0 Error occurred during the Build Error instantiating builder ‘ord.eclipse.m2e.core.maven2Builder’. Plug-in org.eclipse.m2e.core was unable to load class org.eclipse.m2e.core.interna

Disable dashboard from configuration eclipse file, show dashboard error encountered

I can’t open Spring Tool Suite 3.5.0, I’m getting ‘show dashboard’ has encountered error, It is possible to disable dashboard from eclipse configuration file ? I installed jdk 1.8 yesterday, can it be

The runtime has encountered a fatal error

The runtime has encountered a fatal error. The address of the error 0x6a0a7c6d on thread 0x1f70. The error code is 0x80131623. This may be a bug in the CLR or in the unsafe or non-verifiable portions

Android HelloWorld Build Path error

On my Mac I installed Eclipse, the SDK and created a new project, then hit build expecting to see my first helloworld app. I got the error the project cannot be built until build path errors are fixe

Eclipse CDT build error: make not in path

I just recently(actually today) started using Eclipse CDT for windows. Created a project, a test C file(Hello World) added to project. Build the project, I got error as below. Error: Program make is n

Build path specifies execution environment J2SE-1.4. error in eclipse

In building eclipse code, I have this Build path specifies … error. Build path specifies execution environment J2SE-1.4. There are no JREs installed in the workspace that are strictly compatible

Answers

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.

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.

Check directory permissions on D:/workspace/ltwitter and file permissions on D:/workspace/ltwitter/.classpath.

File Properties->Security tab in Windows Explorer

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

I had the same problem, and I found out it was because the .classpath file was hidden. Removing the hidden attribute resolved the issue.

I had the same issue with 64-bit Windows 7 and it was resolved by clearing the Hidden attribute.