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.

Java Home not set
93 Views Asked by itmemilan At
2
Your screenshot presents list of
PATHvariable 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.1Click OK to accept your changes