Intellij IDEA can not find tools.jar

16,020

Solution 1

Open IDEA. Select [File]-[Invalidate Caches/Restart] menu and select "Invalidate and Restart" button. Have a try. :-)

Solution 2

I think you didn't set up JAVA_HOME. Try to add JAVA_HOME=</path/to/JDK> variable to your PATH. For example JAVA_HOME=C:\Program Files\Java\jdk1.8.0_66

Share:
16,020
will_hunting
Author by

will_hunting

Updated on June 21, 2022

Comments

  • will_hunting
    will_hunting almost 2 years

    I install Intellij IDEA 15.0.2 on Windows 8.1, run it, it asked for the path to jdk, i choose directory with JDK, and then IDEA worked correctly. But after reload of PC, I get this error message from IDEA - 'tools.jar' seems to be not in IDEA classpath..So, I check JAVA_HOME from command line, check for tools.jar in JDK_directory/lib, everything is on their places, how to run IDEA?

  • will_hunting
    will_hunting over 8 years
    I check it from command line, JAVA_HOME set up, for example, eclipse, which uses same jdk, works as well.
  • will_hunting
    will_hunting over 8 years
    I can not even open IDEA, it shutdowns after this error message.
  • will_hunting
    will_hunting over 8 years
    And I check PATH variable too, everything is correct there.