Intellij IDEA can not find tools.jar

will_hunting picture will_hunting · Jan 19, 2016 · Viewed 8.4k times · Source

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?

Answer

caspar x picture caspar x · Jan 19, 2016

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