Pom.xml project build error


I have imported maven projects in my eclipse, but I am getting the following error in pom.xml-


Project build error: 'dependencyManagement.dependencies.dependency.systemPath' for jdk.tools:jdk.tools:jar must specify an absolute path but is ${JAVA_HOME}/lib/tools.jar


I am kind of new to maven, any help will be appreciated.


You've specified a dependency on jdk.tools:jdk.tools:jar with a <systemPath> of ${JAVA_HOME}/lib/tools.jar. ${JAVA_HOME} isn't a valid <a href="http://books.sonatype.com/mvnref-book/reference/resource-filtering-sect-properties.html" rel="nofollow">Maven property</a>. The syntax to read the environment variable JAVA_HOME is ${env.JAVA_HOME}. However, the same information is exposed as a <a href="http://docs.oracle.com/javase/tutorial/essential/environment/sysprop.html" rel="nofollow">system property</a> named java.home, so ${java.home} is the best solution.


Look for tools.jar which should be in jdk/lib, if not mean download latest jdk or add tools.jar to this location. This should fix the issue.


  • Unable to get dependency in an internal repository
  • How to fill ini file for creating exe for Java app with libs (WinRun4J)
  • database connection not working in jar, but does work in eclipse
  • Specify JRE/JDK when starting Apache Tomcat 7
  • Google chrome can't read and write to its data directory mutli-device hybrid app
  • Why isn't my Android app working when I test it on a real device?
  • java.io.File #listFiles() Returns null from Windows cmd, but not as Eclipse Project Run
  • Updating $PATH with `magic_shell` Cookbook
  • Issue with running .bash_profile by ansible
  • jboss-fuse-6.3.0.redhat-187 Fabric ssh script Error - Command not found: function
  • Maven: What does the following pom.xml file gives empty jar?
  • JAVA_HOME cannot be determined error with XLConnect
  • Running J2EE Eclipse in a VM - Unable to find a javac compiler
  • Having trouble removing punctuation and upper case letters? (Beginner)
  • java.lang.UnsatisfiedLinkError when using JNI on ubuntu
  • Passing a Scala type to a function
  • jParallax trouble
  • Symfony2 redirect to https route fails (uses wrong port)
  • PostgreSQL 9.x - pg_read_binary_file & inserting files into bytea
  • integrate POCO library in android ndk
  • What is the reason that Policy.getPolicy() is considered as it will retain a static reference to the
  • Making header act like google chrome mobile app address bar
  • “mvn clean generate-source” could not resolve dependencies
  • In Java, how can I construct a File from a resource?
  • Android Studio Can't Find tools.jar
  • How to make jdk.nashorn.api.scripting.JSObject visible in plugin [duplicate]
  • How to add git credentials to the build so it would be able to be used within a shell code?
  • Android - Material Design - NavigationView - How to put vertical scroll?
  • Yii2: Config params vs. const/define
  • Ajax Loaded meta Tags
  • PHPUnit_Framework_TestCase class is not available. Fix… - Makegood , Eclipse
  • Why is an OPTIONS request sent to the server?
  • Projection media query: browser support and workarounds?
  • Different response to non-authenticated users and AJAX calls
  • javaw.exe and eclipse startup problems
  • ILMerge & Keep Assembly Name
  • Symfony2: How to get request parameter
  • Run Powershell script from inside other Powershell script with dynamic redirection to file
  • VB.net deserialize, JSON Conversion from type 'Dictionary(Of String,Object)' to type '
  • KeystoneJS: Relationships in Admin UI not updating