This warning is displayed when you open a single Java file, because at that time you can not configure any classpath, so you can not provide information about other types than JDK default. In that case, only syntax errors are reported (Otherwise, you would get compilation errors everywhere.).
You must open a folder that contains a pom.xml , or at least default eclipse configuration files, so that you can establish a complete classpath and project hierarchy.
That is, how you can not find the configuration files pom.xml or any IDE such as Eclipse, etc. The Classpath is incomplete and will only be informed of syntax errors.
Let's say that one way to build a Java project is to use Maven , a Java project management and construction tool and its model of building configuration based on XML (But everything is necessary if you want to work with projects, if you are only going to work with a point file, you can ignore the warning).
Deepening more than is the pom.xml ...
Project Object Model, is an XML file, which is the main "unit" of a Maven project. It contains information about the project, sources, tests, dependencies, plugins, version ... and the configuration details used by Maven to build the project.