简体   繁体   中英

Java jdk path setting in windows

I delete jdk\\bin path from environment variables path in windows but when ı write "java -version" in anywhere , it still returns true results . How ?

You can use the where command, to check which java application is executed when you run java -version

Is there an equivalent of 'which' on the Windows command line?

Just type where java in cmd console, and you'll get where it is. And as it shows, I think you need check this location(C:\\Windows\\System32) , when you instal java, Java exe files are copied to windows System32 folder, java.exe, javaw.exe and javaws.exe are available there.

Restart your system and try again. In case, it's still pointing after restart, please check the path variable correctly. Might be some referrence still exist in either system/user path variable and thus giving the result.

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