I am trying to make a game with LibGdx. I love it! It is sooo simple and a lot better than JME3 and LWJGL. But trying to package it I am having an error. Here is an image of the gui for Gradle: http://prntscr.com/845kyx and here is a the full debug error: http://pastebin.com/ugdfySg1 Now I don't know how to debug those errors and what not, so I hope someone can help. I have also tried to re-create the entire project, and make it a eclipse valid project, instead of just Gradle. None of that worked.
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.
I have a file called gradle.properties
at the root of my project with the following property:
org.gradle.java.home=C:\\Program Files\\Java\\jdk1.8.0_74
org.gradle.java.home
needs to point to a valid JDK location.
Without this file, I get the same error (Could not find tools.jar). With the file present, this is no longer an issue.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With