In the pom.xml for a java project, I get missing artifact jdk.tools:jdk.tools:jar:1.6 error

后端 未结 7 1007
执念已碎
执念已碎 2021-02-05 05:20

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

7条回答
  •  忘了有多久
    2021-02-05 05:59

    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, change the path to tools.jar to an absolute path as shown below:

    C:/Program Files/Java/jdk1.8.0_65/lib/tools.jar
    

提交回复
热议问题