You've imported a non Eclipse project into the Eclipse and haven't told Eclipse
which folders contains source files, you will get a warning like this:
'This compilation unit is not on the build path of a Java project.'
You can easily solve this problem by editing .classpath file under the root directory of your project. Open this file with a text editor and add
these lines under to classpath tag:
< classpathentry kind="src" path="src/path/to/sources" />
For example, if you have a source folder under src/main, you need to add
<classpathentry kind="src" path="src/main" />
Hiç yorum yok:
Yorum Gönder