0

trying to run gradle test but I get this error ERROR: JAVA_HOME is set to an invalid directory: C:\Program Files\Java\jdk-19\bin;

Please set the JAVA_HOME variable in your environment to match the location of your Java installation.

How do I edit the Java_Home variable so that gradle works?

vrr8
  • 1
  • 1
    Didn't check the docs but I think often JAVA_HOME points to just C:\Program Files\Java\jdk-19 and the program adds \bin or \lib or whatever as needed. – markspace Oct 28 '22 at 19:54
  • 1
    Some other ideas here: https://stackoverflow.com/questions/22307516/gradle-finds-wrong-java-home-even-though-its-correctly-set – markspace Oct 28 '22 at 19:55

0 Answers0