最近做hbase开发时,引入相关jar包后,出现了以下错误

Missing artifact jdk.tools:jdk.tools:jar:1.8

 

绝对地址引用

<dependency>
    <groupId>jdk.tools</groupId>
    <artifactId>jdk.tools</artifactId>
    <version>1.8</version>
    <scope>system</scope>
    <systemPath>D:\Program Files\Java\jdk1.8.0_221\lib/tools.jar</systemPath>
</dependency>

或者,先配置环境变量,再通过$JAVA_HOME地址引用

pom.xml文件引入tools.jar

<dependency>
    <groupId>jdk.tools</groupId>
    <artifactId>jdk.tools</artifactId>
    <version>1.8</version>
    <scope>system</scope>
    <systemPath>${JAVA_HOME}\lib/tools.jar</systemPath>
</dependency>

 

相关文章:

  • 2022-01-04
  • 2021-04-04
  • 2022-12-23
  • 2021-08-02
  • 2021-10-10
  • 2022-03-02
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-09-27
  • 2022-12-23
  • 2021-10-29
  • 2021-06-22
  • 2021-08-26
  • 2022-12-23
相关资源
相似解决方案