Could not find tools.jar. Please check that C:\Program Files\Java\jre1.8.0_151 contains a valid JDK installation

后端 未结 16 2191
天命终不由人
天命终不由人 2020-12-01 02:50

Even though I manually configured JDK project structure file/Project structure it still shows this error FAILURE: Build failed with an exception.

`What went wrong:

16条回答
  •  Happy的楠姐
    2020-12-01 02:58

    What I did was download the JDK from here, start a windows command prompt (windows+r CMD) and set the environment variable JAVA_HOME to c:\Program Files\Java\jdk-14 with:

    set JAVA_HOME="c:\Program Files\Java\jdk-14"
    

    Then run what I wanted to run. It failed afterwards, but on a different issue.

提交回复
热议问题