I think I know how to solve the problem except: I don\'t know where in the pom the specific version is referred to (I do not see it explicitly) and the solution I have seen is t
For anyone who stumbles over this issue in the future, read on for a more elegant solution:
This issue crops up in one of the two scenarios:
You do not have JDK installed and configured; or
You've both JDK and JRE installed and JRE is getting precedence over the JDK path.
As explained in this link by the team at 'Hadoop in the real world', you merely need to add the dependency to tools.jar
in your pom.xml
file.
jdk.tools
jdk.tools
1.7.0_05
system
${JAVA_HOME}/lib/tools.jar
If the error persists, then just change the path to tools.jar
to an absolute path as shown below:
C:/Program Files/Java/jdk1.8.0_65/lib/tools.jar