Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot determine path to 'tools.jar' library for 18 (C:/Program Files/jdk-18.0.1.1)

i want to run my code in intellij ide (community edition) and when i try to run it, i got this error

Cannot determine path to 'tools.jar' library for 18 (C:/Program Files/jdk-18.0.1.1)

This is the Screenshot of the error

Help me pls... I want to learn kotlin use intellij ide

And this is my JAVA_HOME

version ide : 2020.2 Thank you :)

like image 514
Crooky1123 Avatar asked Jan 21 '26 10:01

Crooky1123


1 Answers

The problem is with version of JDK you are using. The Intellij version 2020.2 supports only upto JDK 14. So either you have to lower the JDK version to 14 or update the IntelliJ to a newer version like 2021.

Source: https://www.jetbrains.com/help/idea/supported-java-versions.html

like image 89
ARKHAN Avatar answered Jan 24 '26 01:01

ARKHAN



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!