I'm not able to delete JAVA_HOME environment variable from my system. I'm using windows 10. I don't have anything as JAVA_HOME in my system variables but still in cmd if we echo %JAVA_HOME% it shows some path that didn't even exits. How to resolve this issue.
In cmd it shows this.
Microsoft Windows [Version 10.0.19042.1237] (c) Microsoft Corporation. All rights reserved.
C:\Users\nikhil.bankar>java -version 'java' is not recognized as an internal or external command, operable program or batch file.
C:\Users\nikhil.bankar>echo %JAVA_HOME%
D:\Java\Jdk1.8\bin
C:\Users\nikhil.bankar>