Fix 'Build Path' Error or Missing File in Eclipse Project

(0 votes, average 0 out of 5)

Sometimes the Eclipse IDE will refuse to build a project - citing a missing resource or file or just a generic "build path" error. If the resource is not missing but in the folder where it should be, the build path may just need to be refreshed. If you encounter a build error when trying to run a project, try these steps to resolve it:

  • Make all files in the project read-write. To do so, go to the Eclipse workspace in the file manager (e.g. Windows Explorer, Finder, or Nautilus), right-click on the project root folder and go to Properties. If the Read-only box is checked, uncheck it and click OK. When prompted for which files to change, select Apply changes to this folder, subfolders, and files
  • Back in Eclipse, right-click on the project and go to Build Path - Configure Build Path. Look through all of the folders on the build path and see if any of them seem incorrect. For example, if Excluded is set to "**" and it shouldn't be. If necessary, remove and add any of these entries again, or simply add the entire src folder of the project. Once done, click OK
  • To make sure these changes are used, clean the project by going to Project - Clean... and let it run.

Once these steps are done, try running the project again to see if it works. It may be necessary to edit the build path a few times, so just repeat the 2nd and 3rd bullets. 

Partner Links:
 
Related Articles

» Understanding File and Folder Permissions (POSIX) on Linux and Mac OS X (using chmod)

Linux and Mac OS X both use a -compatible type of filesystem. This has to do with the way files are accessed by their owner and others. Files and folders have permissions for 3 different types of users:Owner: this is the user who owns the file or folderGroup: this is the permissions for any user in the group that the file belongs toOthers: this is the permissions for all other users who don't fall into one of the two above categoriesFor each of these types of users, there are 3 different...

» How to Setup and Secure a Wireless Network Using a Linksys Router

First thing to do is setup your router. Make sure you hook up the power cable, the modem, and all wired computers to the router. Once this has been done, verify that you can see the wireless network associated with your router. A newly created network will most likely be named 'linksys'.Open a web browser on one of the computers connected to the network. Once the web browser is open, type http://192.168.1.1 into the address bar. This will take you to the routers build-in administrator portal....

» How to Fix the PS2 Disc Read Error

Although the Playstation 2 is a system well-known for it's longevity and durability, the fact that it is over a decade old means that it inevitably will have a few issues.  The most common of which is the infamous disc read error.  This is characterized by entering a disc into the PS2, but instead of booting in the game, an error message comes up saying the disc could not be read or the disc was not recognized. There are several ways to fix it, listed below in order of least to most...