Charlatano
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'
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?
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
Go visit this page, it worked for me
https://wajahatkarim.com/2018/06/gradle-doesnt-run-because-it-cant-find-tools.jar-in-jre/
[Solved]
- Download Gradle from here OR from Direct link
- Unzip the downloaded file in
C://
- 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) - Download Java SE Runtime Environment 8u261 here
- Update the /bin path in
System Environment Variables
This will fix the issue. Lemme know if you still got errors
- VisitJava SE Development Kit 8 Downloads.
- Create account for oracle.
- Download and Install Setup.
- You are ready to go.
@alexdeathway It works! thank you very much. @Frappyy feel free to close the issue if it is resolved.
Uninstall any previous version of java and gradle then reinstall as @UsamaSarwar said. It'll solve your problem guaranteed.
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
https://stackoverflow.com/a/65132651/10505343 try this.
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.
Ni8hawk solution solved the problem for me, if it is the java version, so I uninstall and install the one he indicates.