With the idea to create a new maven project that demonstrates hdfs client operations. After introducing dependence, we found a marked red:
<dependency>
<groupId>jdk.tools</groupId>
<artifactId>jdk.tools</artifactId>
<version>1.8</version>
<scope>system</scope>
<systemPath>${JAVA_HOME}/lib/tools.jar</systemPath>
</dependency>
显示:cannot resolve directory ${JAVA_HOME/lib/tools.jar}
Baidu unsuccessful. View all normal environment variable name.
The system can only be written in the following form of the path:
problem solved.
Attachment: window environment to see how the environment variables?
set the environment variable name