Background: I am trying to build Hadoop for Windows using instructions found here. I have OpenJDK 11 and have ran into the following issue while running mvn package
:
Could not resolve dependencies for project org.apache.hadoop:hadoop-annotations:jar:2.5.0-SNAPSHOT: Could not find artifact jdk.tools:jdk.tools:jar:1.6 at specified path C:\Program Files\Java\jdk-11.0.1\..\lib\tools.jar
I realised no tools.jar
exists in the Windows build of OpenJDK 11. Would I have to build this from source as well? How can I get the tools.jar
Maven artefact for OpenJDK 11?
tools.jar
now are on jdk classpath by default, then you don't need to import it. The problem is hadoop expecting to import the jar – Medrek