1

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

canmurat
  • 159
  • 11

3 Answers3

3

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?

Community
  • 1
  • 1
peter
  • 11,751
  • 6
  • 52
  • 89
  • Yes after this "where java" , result : C:\Windows\System32\java.exe – canmurat May 17 '14 at 14:15
  • you can look into http://stackoverflow.com/questions/8223511/how-to-prevent-that-java-exe-is-installed-in-windows-system32 and http://stackoverflow.com/questions/11063831/what-is-the-difference-between-system32-java-exe-and-program-files-java-jdk1 to find an answer how it got there. Probably you can simply remove it. – peter May 17 '14 at 14:20
1

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.

Owen Cao
  • 7,294
  • 2
  • 24
  • 33
0

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.

Sitam Jana
  • 3,015
  • 19
  • 36