[Solved] Error:Cannot determine path to ‘tools.jar‘ library for 17

Error: cannot determine path to ‘tools. Jar’ library for 17 solution

The error shown above occurs when running a java project. The essence is that the current idea version does not support Java 17.
Solution:
1. Download the JDK supported by the current idea version, such as 14
2. Uninstall the current version of idea and download the latest version of idea

I choose 2.
go to the official website of idea to download the latest version of idea
running the project again succeeds

Read More: