title: what is tools.jar replacement ?
body: <p>I have been receiving the following error on eclipse when i try to build an ant project </p>
  
  <pre><code>com.sun.tools.javac.Main is not on the classpath.
  Perhaps JAVA_HOME does not point to the JDK.
  It is currently set to "C:\Program Files\Java\jre-10.0.2"
  </code></pre>
  
  <p>but my JAVA_HOME variable is set to 
      C:\Program Files\Java\jdk-10
  this is the result of the command 
      echo %JAVA_HOME%
  i really tried a lot to solve this problem ,but i don't know much about eclipse,</p>
  
  <p>Edit: i searched some more on the internet and found out that the tools.jar has been removed from the JDK since JDK 9 [link]<a href="https://www.reddit.com/r/javahelp/comments/765mwr/installed_jdk_9_and_my_toolsjar_is_missing/" rel="nofollow noreferrer">https://www.reddit.com/r/javahelp/comments/765mwr/installed_jdk_9_and_my_toolsjar_is_missing/</a>
  the question now is why is eclipse asking for the tools.jar ,and what is tools.jar replacement ? </p>
  
  <p>I would really appreciate any help
  thank you very much </p>