Charlatano icon indicating copy to clipboard operation
Charlatano copied to clipboard

Kotlin could not find the required JDK tools in the Java installation 'C:\Program Files (x86)\Java\jre1.8.0_221'

Open freduard opened this issue 5 years ago • 10 comments

Kotlin could not find the required JDK tools in the Java installation 'C:\Program Files (x86)\Java\jre1.8.0_221' used by Gradle. Make sure Gradle is running on a JDK, not JRE.

How do I fix this? I have set my JAVA_HOME to 'C:\Program Files (x86)\Java\jre1.8.0_221' and added it to my Path. Can someone help?

freduard avatar Jul 23 '19 23:07 freduard

Hey, the error speaks for itself. You need Java 8 or above JDK and not just JRE. Go to the link below and download the jdk file. Java 8

Ni8hawk avatar Aug 01 '19 11:08 Ni8hawk

Go visit this page, it worked for me

https://wajahatkarim.com/2018/06/gradle-doesnt-run-because-it-cant-find-tools.jar-in-jre/

AngeHerman avatar Mar 05 '20 18:03 AngeHerman

[Solved]

  1. Download Gradle from here OR from Direct link
  2. Unzip the downloaded file in C://
  3. Update the /bin path in System Environment Variables Run the program and check if the problem is fixed? Proceed next if you still got the error(s)
  4. Download Java SE Runtime Environment 8u261 here
  5. Update the /bin path in System Environment Variables This will fix the issue. Lemme know if you still got errors

UsamaSarwar avatar Jul 14 '20 17:07 UsamaSarwar

  1. VisitJava SE Development Kit 8 Downloads.
  2. Create account for oracle.
  3. Download and Install Setup.
  4. You are ready to go.

alexdeathway avatar Jul 16 '20 05:07 alexdeathway

@alexdeathway It works! thank you very much. @Frappyy feel free to close the issue if it is resolved.

sethupavan12 avatar Jun 15 '21 02:06 sethupavan12

Uninstall any previous version of java and gradle then reinstall as @UsamaSarwar said. It'll solve your problem guaranteed.

Akash037 avatar Jul 18 '21 16:07 Akash037

Hey, the error speaks for itself. You need Java 8 or above JDK and not just JRE. Go to the link below and download the jdk file. Java 8

you saved my day! Thanks

AnnaPS avatar Jul 31 '21 09:07 AnnaPS

https://stackoverflow.com/a/65132651/10505343 try this.

WimukthiRajapaksha avatar Aug 22 '21 08:08 WimukthiRajapaksha

Go visit this page, it worked for me

https://wajahatkarim.com/2018/06/gradle-doesnt-run-because-it-cant-find-tools.jar-in-jre/

This actually solved the problem.

atj393 avatar Jan 03 '23 23:01 atj393

Ni8hawk solution solved the problem for me, if it is the java version, so I uninstall and install the one he indicates.

gogohhh avatar Mar 07 '23 18:03 gogohhh