2

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 .

Cœur
  • 37,241
  • 25
  • 195
  • 267
URL87
  • 10,667
  • 35
  • 107
  • 174

3 Answers3

3

You can right click on the project and use the menu option:

Build Path->Configure Build Path->[Source Tab]

Select the excluded file from the "Excluded" section and click Remove.

Reimeus
  • 158,255
  • 15
  • 216
  • 276
  • there is no such option in the exluded file . see my eclise version in the post . – URL87 Dec 19 '12 at 14:36
  • I use the same version. The option is available in the `Package Explorer` view. – Reimeus Dec 19 '12 at 14:50
  • OK . note that if the `Package Explorer' is not availabe you can find it by by do [this](http://stackoverflow.com/questions/6141245/cannnot-find-package-explorer-view-in-eclipse") . – URL87 Dec 19 '12 at 15:05
2

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

Sajan Chandran
  • 11,287
  • 3
  • 29
  • 38
1

You can delete the exclude entry in the build path options of your project.

Project -> Properties -> Java Build Path -> Source
lupz
  • 3,620
  • 2
  • 27
  • 43