Buiding Hadoop with Eclipse / Maven - Missing artifact jdk.tools:jdk.tools:jar:1.6

后端 未结 12 1930
盖世英雄少女心
盖世英雄少女心 2020-12-12 12:56

I am trying to import cloudera\'s org.apache.hadoop:hadoop-client:2.0.0-cdh4.0.0 from cdh4 maven repo in a maven project in eclipse 3.81, m2e plugin, with o

12条回答
  •  感情败类
    2020-12-12 13:35

    Ok, if you are using Windows OS

    1. Go to C:\Program Files\Java\jdk1.8.0_40\lib (jdk Version might be different for you)

    2. Make sure tools.jar is present (otherwise download it)

    3. Copy this path "C:\Program Files\Java\jdk1.8.0_40"

    4. In pom.xml

      
      jdk.tools
      jdk.tools
      1.8.0_40
      system
      C:/Program Files/Java/jdk1.8.0_40/lib/tools.jar
      
      
    5. Rebuild and run! BINGO!

提交回复
热议问题