Warning: Classpath is incomplete. Only syntax errors will be reported

0

I am using Atom as my code editor, I have installed the package "atom-ide-ui" and also "ide-java" to be able to use Atom as an IDE. When I open any .java file, it sends me this warning.

I have also set the Classpath variable of my system to recognize the location of the .class files. I do not know what error is happening, if someone has managed to solve this problem their help would be excellent.

    
asked by Fernando Jimenez 09.11.2017 в 07:48
source

1 answer

0

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.

    
answered by 09.11.2017 / 09:31
source