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

后端 未结 7 880
执念已碎
执念已碎 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 06:13

    I figured out the solution to this problem in eclipse.

    In Eclipse,

    Navigate to Window -> Preferences

    On the left hand pane, expand Java and you will find the "Installed JREs" entry

    Select that and you should be able to see the JRE entry that is referring to the JRE folder rather than the JDK folder.

    Select the entry to edit it and then redirect it to the JDK folder and click on Apply.

    This solved my problem right away.

提交回复
热议问题