Skip to content
James Baker edited this page Apr 27, 2017 · 3 revisions

The baleen-javadoc project requires tools.jar from the JDK to build, but this is not available via a standard Maven repository due to limitations on it's distribution. There are two approaches to resolving this:

  1. If you have JAVA_HOME correctly set on your machine and it is pointing to a JDK rather than a JRE, then the relative system path provided in the POM file should pick up tools.jar. However, you may find that you need to tweak this to accurately reflect the files location on your system.

  2. If you are building in Eclipse or aren't able to modify JAVA_HOME, then an alternative approach is to install tools.jar into your local Maven repository using the command below. Following this, you will need to update baleen-javadoc\pom.xml to remove the system scope.

     mvn install:install-file -DgroupId=jdk.tools -DartifactId=jdk.tools -Dpackaging=jar -Dversion=1.8 -Dfile=lib/tools.jar -DgeneratePom=true