Search code examples
javaeclipseclasspathbuildpath

Eclipse - return excluded java file back to the build path


After I exluded java file from the build path by right click on the file > build path > Exclude , I want to return back this file to the build path .

The only way I got that was by edit the .classpath file and omit the required file from the excluding attribure , and the make refresh .

Any other better way ?

I using Version: Indigo Service Release 2 .


Solution

  • Right click your project and select Buildpath -> Configure Buildpath and select Source tab. Open your source folder which had the excluded file, under it you should see in the Excluded area the file which is exlcuded, just remove it using the Remove option. See the imageenter image description here