Eclipse: The archive which is referenced by the classpath, does not exist

前端 未结 7 1487
野趣味
野趣味 2020-12-25 11:52

My Eclipse is Indigo Java classic.

I have a java project which has mockito-all as a dependency. pom.xml:


    org.mo         


        
7条回答
  •  甜味超标
    2020-12-25 11:58

    In my case I had a JRE installed then added a JDK. ANT seemed to stick with the JRE even though I changed my project to use the JDK.

    To fix this I had to do: 1. Select "Run As..." 2. Select the second "Ant build..." option 3. This brings up a panel to allow setting configuration. Choose the "JRE" tab and change the selected JRE to the JDK

提交回复
热议问题