In my openjdk 11 lib folder i have placed tools.jar C:\Program Files\AdoptOpenJDK\jdk-11.0.6.10-hotspot\lib\tools.jar.
But while building project with mvn install command i get the following error
Could not find artifact com.sun:tools:jar:1.8 at specified path C:\Program Files\AdoptOpenJDK\jdk-11.0.6.10-hotspot/../l
ib/tools.jar
Where i am supposed to put my tools.jar? Not sure which folder the error is indicating with /../ before lib/tools.jar.
N.B tools.jar file is copied from jdk 8 folder. I also tried downloading this jar and putting in open jdk lib folder although.
Your on JDK 11, tools.jar was removed in JDK 9, these links provide further information and may help in offering a solution.
These links may be of some use: