ancient-library-85500
12/13/2022, 9:16 PM* What went wrong:
Execution failed for task ':li-utils:compileMainGeneratedDataTemplateJava'.
> Could not find tools.jar. Please check that /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.352.b08-2.el7_9.x86_64/jre contains a valid JDK installation.
Running java -version outputs this:
openjdk version "11.0.17" 2022-10-18 LTS
OpenJDK Runtime Environment (Red_Hat-11.0.17.0.8-2.el7_9) (build 11.0.17+8-LTS)
OpenJDK 64-Bit Server VM (Red_Hat-11.0.17.0.8-2.el7_9) (build 11.0.17+8-LTS, mixed mode, sharing)
My JAVA_HOME variable is set to the Java 11 location. It seems that when I try to run build, gradle is picking up a different, older version of Java that I had been using previously.brainy-tent-14503
12/14/2022, 5:11 PMancient-library-85500
12/15/2022, 2:01 PMbrainy-tent-14503
12/15/2022, 6:18 PMgradle build however is that just in the message and you are actually running ./gradlew build. I ask because it might be the case where you are running an older version of gradle and not the wrapper which is version of 6.9.2ancient-library-85500
12/15/2022, 7:29 PMgradle build and not ./gradlew build , as the former command will allow me to bypass firewall and go through proxy. But my gradle version is 6.9.2.brainy-tent-14503
12/16/2022, 8:16 PM/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.352.b08-2.el7_9.x86_64/jre for the expected tools.jar ? Is it missing like the error indicates or is it in fact present but not being properly detected? If not you likely need the -devel package for what is maybe Centos?modern-answer-65441
03/21/2023, 4:13 PMbrainy-tent-14503
03/22/2023, 3:16 AM