简体   繁体   中英

Java Home not set

I downloaded gradle and in the instruction it told me to add it to system variables so i did but i accidentally removed one of the paths. So when i tried to see what version of gradle i use it was saying error java home is not set(you can see in the image in the mingv terminal). My question is how can i set up my java home here is an image where is showing the paths that i have and on the right what its saying on terminal.

Your screenshot presents list of PATH variable values. Close this dialog.

On the parent dialog window, add new variable, name it JAVA_HOME .

Put the following value to it: C:\Program Files\jdk-18.0.1

Click OK to accept your changes

截屏

Click on 'new'. Type "JAVA_HOME" inside variable name and type path for the java bin folder on variable value.

The result will be as below

System variables

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM