As we all know, the first time you look at a class file, Eclipse gives you an interface option to add a source code path. However, if I had to change the source code path, eclipse would not be prompted. Then use it manually. Method 1: Add a compilation path using Eclipse, which is useful for cases where the source code has been imported into eclipse into engineering. Click the Add button to select the source code project Tianjin Love is good. Note: If you libraries a jar package with a source code project, you can remove it. Method 2: Directly modify the project's. classpath file classpath The configuration itself is not SourcePath property, when the first time for the project to specify the source code path, the Eclipse implementation method is actually modified Classpath file, add this so The Urcepath property. Oh, know the principle, you know how to do it
View Java source Code Setup methods in eclipse