Fixing Project Clean in Eclipse

When running Project -> Clean in the Eclipse you may encounter the following error:

Setting up Eclipse for Rasperry Pi Development - Project Clean Error

To fix it:

1) Make sure RM.EXE file exists in C:\rpi-eclipse\rpi-cross-toolchain\mingw-make (if it doesn't, you may get one from UnxUtils project):

Setting up Eclipse for Rasperry Pi Development - Verifying Existence of RM.EXE

2) Press Win+R, type "sysdm.cpl", press Enter (to open System Properties):

Setting up Eclipse for Rasperry Pi Development - Opening System Properties

3) Click "Advanced" tab, then "Environment Variables..." button:

Setting up Eclipse for Rasperry Pi Development - Opening Advanced System Properties

4) Navigate to "Path" in "System Variables" group and press "Edit...":

Setting up Eclipse for Rasperry Pi Development - Opening PATH Environment Variable

5) Prepend "C:\rpi-eclipse\rpi-cross-toolchain\mingw-make;" (without quotes) to the value:

Setting up Eclipse for Rasperry Pi Development - Editing PATH Environment Variable

6) Click OK and, close all windows of system settings:

Setting up Eclipse for Rasperry Pi Development - PATH Environment Variable Changed

7) Restart Eclipse and make sure 'Project Clean' works as expected:

Setting up Eclipse for Rasperry Pi Development - Project Clean Works Now