score:31
Simply restart eclipse, refresh all projects and do a clean build. That should fix it. Don't forget the eclipse restart, else no matter how many times you do a clean build or refresh, it will not fix the problem
score:0
I know the answer is accepted but in my case that solution didn't work for me, I had restored files from a backup to my local project in linux and the files I restored were owned by root with only the owner being able to read/write the files. SO, I sudo chowned the files "sudo chown _R myUser:myUser *" at the base of my project, refreshed in Eclipse (f5) and the annoying repeated failure of my build was a thing of the past.
score:0
If you are writing Maven projects, try right click on the project and select [Maven] -> [Update Project...] It works for me.
score:0
For me there was a different solution than mentioned here.
I was doing a no-no, I imported a project that had a .project file, and there was some errors in the way my version of eclipse was reading some of the files. The package names and files had a little ! symbol with a yellow background.
The solution was to delete the packages. Obviously make a backup. But in doing this most times the files nor the packages were deleted. Instead eclipse refreshed and the desired files were there. Sometimes I had to hit refresh (F5), and sometimes I had to restore files.
I found it best to delete the packages as that is where eclipse was having reading the data.
score:0
If the missing file is still mentioned in the Linked Resources, no refresh and restart of Eclipse will ever solve the problem. You have to delete the file in the Project Properties Linked Resources list.
score:0
For anyone using VS Code with the RedHat Java plugins (which use Eclipse tooling under the hood), I got this error as well. I fixed with the following:
# Quit VS Code
rm -rf ~/Library/Application\ Support/Code/User/workspaceStorage/*
# Reopen VS Code
score:0
As all others said, it is most probably an issue with the internal caches of Eclipse.
I usually restart the IDE with the additional -clean
option to wipe out the OSGi-related caches, then clean and rebuild all the projects.
If the problem persists, I realized that cleaning up the single affecting project works better that cleaning up the whole workspace. (Ominous... XD)
This usually happens to me when merging changes that imply renaming or deletion of source files, prior to launching Eclipse.
score:1
It can be related to missing location Select File => properties => Resource => Edit file location.
score:2
Looks like someone has deleted that file but eclipse still think that file is part of the project. Might have happened when someone deleted a file from the source control in an improper way.
If you dont have pending changes then you can get fresh copy of the project and import it into your workspace.
If you have pending changes then take a copy of changes and repeat above step. ( A restart of eclipse may be necessary)
Source: stackoverflow.com
Related Query
- Eclipse: The project was not built since the source file ... could not be read
- the project was not build since the source file could not be read
- Eclipse Oxygen - The project was not built since its build path is incomplete
- The question is for eclipse javaEE version. The project was not built since its build path is incomplete
- My imported eclipse project gives error the project was not build since the build path is incomplete. Cannot find the class file for java.lang.object
- Eclipse Mars - The project was not built since its build path is incomplete
- The project was not built since its build path is incomplete
- Eclipse faceted project metadata file could not be read
- Eclipse Build Error "A class file was not written. The project may be inconsistent, if so try refreshing this project and building it"
- The project was not built due to "Failed to init ct.sym for C:\Program Files\Java\jre-10.0.2\lib\jrt-fs.jar" in IDE Eclipse
- Eclipse :The project was not built since its build path is incomplete
- eclipse opencv android ndk: The project was not built due to "'NUL' is an invalid name on this platform."
- How to navigate to the last cursor position in Eclipse if it is in the same file and was not edited?
- Eclipse Hell . . . Failed to read the project description file (.project)
- eclipse maven error: Archive for required library in project cannot be read or is not a valid ZIP file
- Unable to build: the file dx.jar was not loaded from the SDK folder in my eclipse
- The project was not built due to "Could not delete 'project/bin/classes/com',"
- Yet Another 'The project was not built since its build path is incomplete'
- eclipse: Project not built due to "Could not read file ... ~$somefile.xlsx"
- Eclipse: The project was not built due to error
- The project was not built due to "Could not delete '/tesseract-android-tools/bin/classes/com' in Linux
- Could not open the editor: An unexpected exception was thrown in Eclipse Android
- How to attach the source to the jar in the Gradle Eclipse Project when the source attachment is not modifiable?
- The ECLIPSE RCP project could not be exported successfully
- Eclipse WindowsBuilder - Could not open the editor: An unexpected exception was thrown in Ubuntu
- Buffered Images not rendering when project is built as an executable jar file in eclipse
- Eclipse: The project was not built due to "A resource exists with a different case: '/project/bin/License.txt'."
- Eclipse deleting project but not the source code
- How to open folder of a file not in the project explorer in Eclipse IDE?
- RAD project build issue: The project was not built due to "Could not delete
More Query from same tag
- Why am I getting the "No binary found." error in the Eclipse IDE?
- Simple Tomcat/ Servlets - Getting HTTP Status 404
- Difference between Android library and Java library in Android Studio
- Ports and protocol used by Maven to download dependencies in Eclipse?
- RowSelection in NatTable with column group header
- Eclipse Java Console Application Isn't Showing
- Android Emulator not starting on Windows XP
- How to globally replace one annotation type with another?
- Eclipse and android ADT error on new installation
- What is the type of variable is the RatingBar and how to obtain it?
- Sometimes java.net.SocketTimeoutException: Read timed out. Sometimes not
- Adding HttpClient jar to eclipse
- Could not calculate build plan at the creation of a maven project
- Internal error when doing JUnit with Eclipse
- Try Again Button That Resets Everything Within A Game To Initial Value
- Included libraries still cause "undefined reference" error
- BIRT: Error 18004 when trying to preview report
- Eclipse library
- getOutputMediaFile(int) is undefined for the type new Camera.PictureCallback(){} error confusing me
- Birt Eclipse, connecting to a SQLite database through ODBC? Do I need a specific JDBC driver for Birt to use?
- In Eclipse, when debugging, is there an easy way to see a variable's total memory size?
- Why aren't my asset files updated?
- Maven project Creation - While creating project from Eclipse failed
- How to fetch data of textfield from another class in Java?
- iText Class not found - JSF el.evaluationException
- Remove Icons from Eclipse Oxygen IDE
- no entity generate with reverse engineering on hibernate
- Eclipse/SWT: Rectangle taking up entire canvas
- Django unresolved importing in Eclipse
- Why is Groovy Eclipse's Organize imports putting the package declaration below imports, making my file uncompileable?